public class ClusteringConfiguration extends Object implements Matchable<ClusteringConfiguration>
Modifier and Type | Field and Description |
---|---|
static AttributeDefinition<CacheMode> |
CACHE_MODE |
static AttributeDefinition<Long> |
REMOTE_TIMEOUT |
Modifier and Type | Method and Description |
---|---|
AttributeSet |
attributes() |
CacheMode |
cacheMode()
Cache mode.
|
String |
cacheModeString() |
boolean |
equals(Object obj) |
HashConfiguration |
hash()
Configure hash sub element
|
int |
hashCode() |
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 8.3, the
replTimeout attribute is now in ClusteringConfiguration . |
String |
toString() |
public static final AttributeDefinition<CacheMode> CACHE_MODE
public static final AttributeDefinition<Long> REMOTE_TIMEOUT
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 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 © 2018 JBoss, a division of Red Hat. All rights reserved.