public class ClusteringConfiguration extends java.lang.Object implements Matchable<ClusteringConfiguration>, ConfigurationInfo
| Modifier and Type | Field and Description |
|---|---|
static AttributeDefinition<BiasAcquisition> |
BIAS_ACQUISITION |
static AttributeDefinition<java.lang.Long> |
BIAS_LIFESPAN |
static AttributeDefinition<CacheMode> |
CACHE_MODE |
static ElementDefinition |
ELEMENT_DEFINITION |
static AttributeDefinition<java.lang.Integer> |
INVALIDATION_BATCH_SIZE |
static AttributeDefinition<java.lang.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.
|
java.lang.String |
cacheModeString() |
boolean |
equals(java.lang.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() |
java.util.List<ConfigurationInfo> |
subElements() |
java.lang.String |
toString() |
public static final AttributeDefinition<CacheMode> CACHE_MODE
public static final AttributeDefinition<java.lang.Long> REMOTE_TIMEOUT
public static final AttributeDefinition<java.lang.Integer> INVALIDATION_BATCH_SIZE
public static final AttributeDefinition<BiasAcquisition> BIAS_ACQUISITION
public static final AttributeDefinition<java.lang.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 java.lang.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 BaseConfigurationInfoAttributeSet declared by the configuration.public ElementDefinition getElementDefinition()
getElementDefinition in interface BaseConfigurationInfoElementDefinition of the configuration.public java.util.List<ConfigurationInfo> subElements()
subElements in interface ConfigurationInfopublic boolean matches(ClusteringConfiguration other)
matches in interface Matchable<ClusteringConfiguration>public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object