public class L1ConfigurationBuilder extends Object implements Builder<L1Configuration>
Modifier and Type | Method and Description |
---|---|
AsyncConfigurationBuilder |
async()
If configured all communications are asynchronous, in that whenever a thread sends a message
sent over the wire, it does not wait for an acknowledgment before returning.
|
Configuration |
build() |
L1ConfigurationBuilder |
cleanupTaskFrequency(long frequencyMillis)
How often the L1 requestors map is cleaned up of stale items
|
L1ConfigurationBuilder |
cleanupTaskFrequency(long frequencyMillis,
TimeUnit unit)
How often the L1 requestors map is cleaned up of stale items
|
ClusteringConfigurationBuilder |
clustering() |
CompatibilityModeConfigurationBuilder |
compatibility() |
L1Configuration |
create()
Create the configuration bean
|
CustomInterceptorsConfigurationBuilder |
customInterceptors() |
DataContainerConfigurationBuilder |
dataContainer() |
DeadlockDetectionConfigurationBuilder |
deadlockDetection() |
L1ConfigurationBuilder |
disable() |
L1ConfigurationBuilder |
disableOnRehash()
Entries removed due to a rehash will be removed altogether rather than bring moved to L1.
|
L1ConfigurationBuilder |
enable() |
L1ConfigurationBuilder |
enabled(boolean enabled) |
L1ConfigurationBuilder |
enableOnRehash()
Entries removed due to a rehash will be moved to L1 rather than being removed altogether.
|
EvictionConfigurationBuilder |
eviction() |
ExpirationConfigurationBuilder |
expiration() |
protected ConfigurationBuilder |
getBuilder() |
protected ClusteringConfigurationBuilder |
getClusteringBuilder() |
HashConfigurationBuilder |
hash()
Allows fine-tuning of rehashing characteristics.
|
IndexingConfigurationBuilder |
indexing() |
L1ConfigurationBuilder |
invalidationThreshold(int invalidationThreshold)
Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.
|
InvocationBatchingConfigurationBuilder |
invocationBatching() |
JMXStatisticsConfigurationBuilder |
jmxStatistics() |
L1ConfigurationBuilder |
l1()
Configures the L1 cache behavior in 'distributed' caches instances.
|
L1ConfigurationBuilder |
l1OnRehash(boolean l1OnRehash) |
L1ConfigurationBuilder |
lifespan(long lifespan)
Maximum lifespan of an entry placed in the L1 cache.
|
L1ConfigurationBuilder |
lifespan(long lifespan,
TimeUnit unit)
Maximum lifespan of an entry placed in the L1 cache.
|
LockingConfigurationBuilder |
locking() |
L1ConfigurationBuilder |
onRehash(boolean enabled)
Entries removed due to a rehash will be moved to L1 rather than being removed altogether.
|
PersistenceConfigurationBuilder |
persistence() |
L1ConfigurationBuilder |
read(L1Configuration template)
Reads the configuration from an already created configuration bean into this builder.
|
SitesConfigurationBuilder |
sites() |
StateTransferConfigurationBuilder |
stateTransfer()
Configures how state is transferred when a new cache joins the cluster.
|
StoreAsBinaryConfigurationBuilder |
storeAsBinary() |
SyncConfigurationBuilder |
sync()
If configured all communications are synchronous, in that whenever a thread sends a message
sent over the wire, it blocks until it receives an acknowledgment from the recipient.
|
String |
toString() |
TransactionConfigurationBuilder |
transaction() |
UnsafeConfigurationBuilder |
unsafe() |
void |
validate()
Validate the data in this builder before building the configuration bean
|
VersioningConfigurationBuilder |
versioning() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, locking, persistence, sites, storeAsBinary, transaction, unsafe, versioning
public L1ConfigurationBuilder invalidationThreshold(int invalidationThreshold)
Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.
By default multicast will be used.
If the threshold is set to -1, then unicasts will always be used. If the threshold is set to 0, then multicast will be always be used.
invalidationThreshold
- the threshold over which to use a multicastpublic L1ConfigurationBuilder lifespan(long lifespan)
public L1ConfigurationBuilder lifespan(long lifespan, TimeUnit unit)
public L1ConfigurationBuilder cleanupTaskFrequency(long frequencyMillis)
public L1ConfigurationBuilder cleanupTaskFrequency(long frequencyMillis, TimeUnit unit)
public L1ConfigurationBuilder enableOnRehash()
public L1ConfigurationBuilder onRehash(boolean enabled)
public L1ConfigurationBuilder disableOnRehash()
public L1ConfigurationBuilder l1OnRehash(boolean l1OnRehash)
public L1ConfigurationBuilder enable()
public L1ConfigurationBuilder disable()
public L1ConfigurationBuilder enabled(boolean enabled)
public void validate()
Builder
validate
in interface Builder<L1Configuration>
public L1Configuration create()
Builder
create
in interface Builder<L1Configuration>
public L1ConfigurationBuilder read(L1Configuration template)
Builder
read
in interface Builder<L1Configuration>
template
- the configuration from which to "clone" this config if needed.public AsyncConfigurationBuilder async()
ClusteringConfigurationChildBuilder
async
in interface ClusteringConfigurationChildBuilder
public HashConfigurationBuilder hash()
ClusteringConfigurationChildBuilder
hash
in interface ClusteringConfigurationChildBuilder
public L1ConfigurationBuilder l1()
ClusteringConfigurationChildBuilder
l1
in interface ClusteringConfigurationChildBuilder
public StateTransferConfigurationBuilder stateTransfer()
ClusteringConfigurationChildBuilder
stateTransfer
in interface ClusteringConfigurationChildBuilder
public SyncConfigurationBuilder sync()
ClusteringConfigurationChildBuilder
sync
in interface ClusteringConfigurationChildBuilder
protected ClusteringConfigurationBuilder getClusteringBuilder()
public ClusteringConfigurationBuilder clustering()
clustering
in interface ConfigurationChildBuilder
public CustomInterceptorsConfigurationBuilder customInterceptors()
customInterceptors
in interface ConfigurationChildBuilder
public DataContainerConfigurationBuilder dataContainer()
dataContainer
in interface ConfigurationChildBuilder
public DeadlockDetectionConfigurationBuilder deadlockDetection()
deadlockDetection
in interface ConfigurationChildBuilder
public EvictionConfigurationBuilder eviction()
eviction
in interface ConfigurationChildBuilder
public ExpirationConfigurationBuilder expiration()
expiration
in interface ConfigurationChildBuilder
public IndexingConfigurationBuilder indexing()
indexing
in interface ConfigurationChildBuilder
public InvocationBatchingConfigurationBuilder invocationBatching()
invocationBatching
in interface ConfigurationChildBuilder
public JMXStatisticsConfigurationBuilder jmxStatistics()
jmxStatistics
in interface ConfigurationChildBuilder
public PersistenceConfigurationBuilder persistence()
persistence
in interface ConfigurationChildBuilder
public LockingConfigurationBuilder locking()
locking
in interface ConfigurationChildBuilder
public StoreAsBinaryConfigurationBuilder storeAsBinary()
storeAsBinary
in interface ConfigurationChildBuilder
public TransactionConfigurationBuilder transaction()
transaction
in interface ConfigurationChildBuilder
public VersioningConfigurationBuilder versioning()
versioning
in interface ConfigurationChildBuilder
public UnsafeConfigurationBuilder unsafe()
unsafe
in interface ConfigurationChildBuilder
public SitesConfigurationBuilder sites()
sites
in interface ConfigurationChildBuilder
public CompatibilityModeConfigurationBuilder compatibility()
compatibility
in interface ConfigurationChildBuilder
protected ConfigurationBuilder getBuilder()
public Configuration build()
build
in interface ConfigurationChildBuilder
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.