public final class ClusteringServiceConfiguration extends java.lang.Object implements org.ehcache.spi.service.ServiceCreationConfiguration<ClusteringService>, org.ehcache.config.builders.CacheManagerConfiguration<org.ehcache.PersistentCacheManager>
ClusteringService
.Constructor and Description |
---|
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. |
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. |
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. |
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 null
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 requiredjava.lang.NullPointerException
- if clusterUri
or serverConfig
is null
public java.net.URI getClusterUri()
URI
of the cluster that will be connected to.URI
public 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 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>