public class ClusteringConfiguration extends Object implements Matchable<ClusteringConfiguration>
Modifier and Type | Field and Description |
---|---|
static AttributeDefinition<BiasAcquisition> |
BIAS_ACQUISITION |
static AttributeDefinition<Long> |
BIAS_LIFESPAN |
static AttributeDefinition<CacheMode> |
CACHE_MODE |
static AttributeDefinition<Integer> |
INVALIDATION_BATCH_SIZE |
static AttributeDefinition<Long> |
REMOTE_TIMEOUT |
Modifier and Type | Method and Description |
---|---|
AttributeSet |
attributes() |
BiasAcquisition |
biasAcquisition()
For scattered cache, specifies if the nodes is allowed to cache the entry, serving reads locally.
|
long |
biasLifespan()
For scattered cache, specifies how long is the node allowed to read the cached entry locally.
|
CacheMode |
cacheMode()
Cache mode.
|
String |
cacheModeString() |
boolean |
equals(Object obj) |
HashConfiguration |
hash()
Configure hash sub element
|
int |
hashCode() |
int |
invalidationBatchSize()
For scattered cache, the threshold after which batched invalidations are sent
|
L1Configuration |
l1()
This method allows configuration of the L1 cache for distributed caches.
|
boolean |
matches(ClusteringConfiguration other) |
PartitionHandlingConfiguration |
partitionHandling()
Configures cluster's behaviour in the presence of partitions or node failures.
|
long |
remoteTimeout()
This is the timeout used to wait for an acknowledgment when making a remote call, after which
the call is aborted and an exception is thrown.
|
void |
remoteTimeout(long timeoutMillis)
This is the timeout used to wait for an acknowledgment when making a remote call, after which
the call is aborted and an exception is thrown.
|
StateTransferConfiguration |
stateTransfer() |
SyncConfiguration |
sync()
Deprecated.
Since 9.0, the
replTimeout attribute is now in ClusteringConfiguration . |
String |
toString() |
public static final AttributeDefinition<CacheMode> CACHE_MODE
public static final AttributeDefinition<Long> REMOTE_TIMEOUT
public static final AttributeDefinition<Integer> INVALIDATION_BATCH_SIZE
public static final AttributeDefinition<BiasAcquisition> BIAS_ACQUISITION
public static final AttributeDefinition<Long> BIAS_LIFESPAN
public CacheMode cacheMode()
CacheMode
for information on the various cache modes available.public long remoteTimeout()
public void remoteTimeout(long timeoutMillis)
public PartitionHandlingConfiguration partitionHandling()
public String cacheModeString()
public int invalidationBatchSize()
public BiasAcquisition biasAcquisition()
public long biasLifespan()
public HashConfiguration hash()
public L1Configuration l1()
L1ConfigurationBuilder.disable()
@Deprecated public SyncConfiguration sync()
replTimeout
attribute is now in ClusteringConfiguration
.async()
as two are mutually exclusivepublic StateTransferConfiguration stateTransfer()
public AttributeSet attributes()
public boolean matches(ClusteringConfiguration other)
matches
in interface Matchable<ClusteringConfiguration>
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.