public class ClusteringConfiguration extends Object implements Matchable<ClusteringConfiguration>, ConfigurationInfo
Modifier and Type | Field and Description |
---|---|
static AttributeDefinition<BiasAcquisition> |
BIAS_ACQUISITION |
static AttributeDefinition<Long> |
BIAS_LIFESPAN |
static AttributeDefinition<CacheMode> |
CACHE_MODE |
static ElementDefinition |
ELEMENT_DEFINITION |
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) |
ElementDefinition |
getElementDefinition() |
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() |
List<ConfigurationInfo> |
subElements() |
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 static final ElementDefinition ELEMENT_DEFINITION
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()
public StateTransferConfiguration stateTransfer()
public AttributeSet attributes()
attributes
in interface BaseConfigurationInfo
AttributeSet
declared by the configuration.public ElementDefinition getElementDefinition()
getElementDefinition
in interface BaseConfigurationInfo
ElementDefinition
of the configuration.public List<ConfigurationInfo> subElements()
subElements
in interface ConfigurationInfo
public boolean matches(ClusteringConfiguration other)
matches
in interface Matchable<ClusteringConfiguration>
Copyright © 2021 JBoss by Red Hat. All rights reserved.