|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ehcache.clustered.client.config.ClusteringServiceConfiguration
public class ClusteringServiceConfiguration
Specifies the configuration for a ClusteringService.
| Constructor Summary | |
|---|---|
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,
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. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClusteringServiceConfiguration(java.net.URI clusterUri)
ClusteringServiceConfiguration from the properties provided.
clusterUri - the non-null URI identifying the cluster server
java.lang.NullPointerException - if clusterUri is null
java.lang.IllegalArgumentException - if clusterUri is not URI valid for cluster operations
public 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 used
java.lang.NullPointerException - if clusterUri is null
java.lang.IllegalArgumentException - if clusterUri is not URI valid for cluster operations
public 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 required
java.lang.NullPointerException - if clusterUri or serverConfig is null
java.lang.IllegalArgumentException - if clusterUri is not URI valid for cluster operations
public 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 required
java.lang.NullPointerException - if clusterUri or serverConfig is null
java.lang.IllegalArgumentException - if clusterUri is not URI valid for cluster operations
public 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 required
java.lang.NullPointerException - if clusterUri or serverConfig is null
java.lang.IllegalArgumentException - if clusterUri is not URI valid for cluster operationsprotected ClusteringServiceConfiguration(ClusteringServiceConfiguration baseConfig)
| Method Detail |
|---|
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>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||