public class ClusteringServiceConfiguration extends java.lang.Object implements org.ehcache.spi.service.ServiceCreationConfiguration<ClusteringService>, org.ehcache.config.builders.CacheManagerConfiguration<org.ehcache.PersistentCacheManager>, org.ehcache.core.HumanReadable
ClusteringService.| Modifier | Constructor and Description |
|---|---|
protected |
ClusteringServiceConfiguration(ClusteringServiceConfiguration baseConfig) |
|
ClusteringServiceConfiguration(java.net.URI clusterUri)
Creates a
ClusteringServiceConfiguration from the properties provided. |
|
ClusteringServiceConfiguration(java.net.URI clusterUri,
boolean autoCreate,
ServerSideConfiguration serverConfig)
Creates a
ClusteringServiceConfiguration from the properties provided. |
|
ClusteringServiceConfiguration(java.net.URI clusterUri,
ServerSideConfiguration serverConfig)
Creates a
ClusteringServiceConfiguration from the properties provided. |
|
ClusteringServiceConfiguration(java.net.URI clusterUri,
TimeoutDuration readOperationTimeout)
Creates a
ClusteringServiceConfiguration from the properties provided. |
|
ClusteringServiceConfiguration(java.net.URI clusterUri,
TimeoutDuration readOperationTimeout,
boolean autoCreate,
ServerSideConfiguration serverConfig)
Creates a
ClusteringServiceConfiguration from the properties provided. |
|
ClusteringServiceConfiguration(java.net.URI clusterUri,
TimeoutDuration readOperationTimeout,
ServerSideConfiguration serverConfig)
Creates a
ClusteringServiceConfiguration from the properties provided. |
| Modifier and Type | Method and Description |
|---|---|
org.ehcache.config.builders.CacheManagerBuilder<org.ehcache.PersistentCacheManager> |
builder(org.ehcache.config.builders.CacheManagerBuilder<? extends org.ehcache.CacheManager> other) |
java.net.URI |
getClusterUri()
The
URI of the cluster that will be connected to. |
TimeoutDuration |
getReadOperationTimeout()
The timeout for cache read operations.
|
ServerSideConfiguration |
getServerConfiguration()
The default server resource to use for caches and pools, or
null if one is not defined. |
java.lang.Class<ClusteringService> |
getServiceType() |
boolean |
isAutoCreate()
Returns
true is server side components should be automatically created. |
java.lang.String |
readableString() |
public ClusteringServiceConfiguration(java.net.URI clusterUri)
ClusteringServiceConfiguration from the properties provided.clusterUri - the non-null URI identifying the cluster serverjava.lang.NullPointerException - if clusterUri is nulljava.lang.IllegalArgumentException - if clusterUri is not URI valid for cluster operationspublic ClusteringServiceConfiguration(java.net.URI clusterUri,
TimeoutDuration readOperationTimeout)
ClusteringServiceConfiguration from the properties provided.clusterUri - the non-null URI identifying the cluster serverreadOperationTimeout - the TimeoutDuration specifying the time limit for clustered cache
read operations; if null, the default value is usedjava.lang.NullPointerException - if clusterUri is nulljava.lang.IllegalArgumentException - if clusterUri is not URI valid for cluster operationspublic ClusteringServiceConfiguration(java.net.URI clusterUri,
ServerSideConfiguration serverConfig)
ClusteringServiceConfiguration from the properties provided.clusterUri - the non-null URI identifying the cluster serverserverConfig - the server side entity configuration requiredjava.lang.NullPointerException - if clusterUri or serverConfig is nulljava.lang.IllegalArgumentException - if clusterUri is not URI valid for cluster operationspublic ClusteringServiceConfiguration(java.net.URI clusterUri,
TimeoutDuration readOperationTimeout,
ServerSideConfiguration serverConfig)
ClusteringServiceConfiguration from the properties provided.clusterUri - the non-null URI identifying the cluster serverreadOperationTimeout - the TimeoutDuration specifying the time limit for clustered cache
read operations; if null, the default value is usedserverConfig - the server side entity configuration requiredjava.lang.NullPointerException - if clusterUri or serverConfig is nulljava.lang.IllegalArgumentException - if clusterUri is not URI valid for cluster operationspublic ClusteringServiceConfiguration(java.net.URI clusterUri,
boolean autoCreate,
ServerSideConfiguration serverConfig)
ClusteringServiceConfiguration from the properties provided.clusterUri - the non-null URI identifying the cluster serverautoCreate - true if server components should be auto createdserverConfig - the server side entity configuration requiredjava.lang.NullPointerException - if clusterUri or serverConfig is nulljava.lang.IllegalArgumentException - if clusterUri is not URI valid for cluster operationspublic ClusteringServiceConfiguration(java.net.URI clusterUri,
TimeoutDuration readOperationTimeout,
boolean autoCreate,
ServerSideConfiguration serverConfig)
ClusteringServiceConfiguration from the properties provided.clusterUri - the non-null URI identifying the cluster serverreadOperationTimeout - the TimeoutDuration specifying the time limit for clustered cache
read operations; if null, the default value is usedautoCreate - true if server components should be auto createdserverConfig - the server side entity configuration requiredjava.lang.NullPointerException - if clusterUri or serverConfig is nulljava.lang.IllegalArgumentException - if clusterUri is not URI valid for cluster operationsprotected ClusteringServiceConfiguration(ClusteringServiceConfiguration baseConfig)
public java.net.URI getClusterUri()
URI of the cluster that will be connected to.URIpublic boolean isAutoCreate()
true is server side components should be automatically created.true is auto-create is enabledpublic ServerSideConfiguration getServerConfiguration()
null if one is not defined.public TimeoutDuration getReadOperationTimeout()
null indicating the default timeout is usedpublic java.lang.Class<ClusteringService> getServiceType()
getServiceType in interface org.ehcache.spi.service.ServiceCreationConfiguration<ClusteringService>public org.ehcache.config.builders.CacheManagerBuilder<org.ehcache.PersistentCacheManager> builder(org.ehcache.config.builders.CacheManagerBuilder<? extends org.ehcache.CacheManager> other)
builder in interface org.ehcache.config.builders.CacheManagerConfiguration<org.ehcache.PersistentCacheManager>public java.lang.String readableString()
readableString in interface org.ehcache.core.HumanReadable