public final class ClusteringServiceConfigurationBuilder extends java.lang.Object implements org.ehcache.config.Builder<ClusteringServiceConfiguration>
Modifier and Type | Method and Description |
---|---|
ServerSideConfigurationBuilder |
autoCreate()
Support connection to an existing entity or create if the entity if absent.
|
ClusteringServiceConfiguration |
build() |
static ClusteringServiceConfigurationBuilder |
cluster(java.lang.Iterable<java.net.InetSocketAddress> servers,
java.lang.String clusterTierManager)
Creates a new builder connecting to the given cluster.
|
static ClusteringServiceConfigurationBuilder |
cluster(java.net.URI clusterUri)
Creates a new builder connecting to the given cluster.
|
ServerSideConfigurationBuilder |
expecting()
Only support connection to an existing entity.
|
ClusteringServiceConfigurationBuilder |
readOperationTimeout(long duration,
java.util.concurrent.TimeUnit unit)
Deprecated.
Use
timeouts(Timeouts) . Note that calling this method will override any timeouts previously set
by setting the read operation timeout to the specified value and everything else to its default. |
ClusteringServiceConfigurationBuilder |
timeouts(org.ehcache.config.Builder<? extends Timeouts> timeoutsBuilder)
Adds timeouts.
|
ClusteringServiceConfigurationBuilder |
timeouts(Timeouts timeouts)
Adds timeouts.
|
public static ClusteringServiceConfigurationBuilder cluster(java.net.URI clusterUri)
clusterUri
- cluster URIpublic static ClusteringServiceConfigurationBuilder cluster(java.lang.Iterable<java.net.InetSocketAddress> servers, java.lang.String clusterTierManager)
servers
- the non-null
iterable of servers in the clusterclusterTierManager
- the non-null
cluster tier manager identifierpublic ServerSideConfigurationBuilder autoCreate()
public ServerSideConfigurationBuilder expecting()
public ClusteringServiceConfigurationBuilder timeouts(Timeouts timeouts)
timeouts
- the amount of time permitted for all operationsjava.lang.NullPointerException
- if timeouts
is null
public ClusteringServiceConfigurationBuilder timeouts(org.ehcache.config.Builder<? extends Timeouts> timeoutsBuilder)
timeoutsBuilder
- the builder for amount of time permitted for all operationsjava.lang.NullPointerException
- if timeouts
is null
@Deprecated public ClusteringServiceConfigurationBuilder readOperationTimeout(long duration, java.util.concurrent.TimeUnit unit)
timeouts(Timeouts)
. Note that calling this method will override any timeouts previously set
by setting the read operation timeout to the specified value and everything else to its default.duration
- the amount of time permitted for read operationsunit
- the time units for duration
java.lang.NullPointerException
- if unit
is null
java.lang.IllegalArgumentException
- if amount
is negativepublic ClusteringServiceConfiguration build()
build
in interface org.ehcache.config.Builder<ClusteringServiceConfiguration>