public class GridGainCacheConfiguration extends Object implements CachePluginConfiguration
Modifier and Type | Field and Description |
---|---|
static CacheConflictMode |
DFLT_CONFLICT_RSLVR_MODE
Default data center replication receiver cache conflict resolver mode.
|
Constructor and Description |
---|
GridGainCacheConfiguration()
Empty constructor.
|
GridGainCacheConfiguration(GridGainCacheConfiguration cc)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
CacheConflictResolver |
getConflictResolver()
Gets conflict resolver.
|
CacheConflictMode |
getConflictResolverMode()
Gets conflict resolver mode.
|
CacheDrSenderConfiguration |
getDrSenderConfiguration()
Gets data center replication send configuration.
|
boolean |
isDrReceiverEnabled()
Deprecated.
Use
CacheDrSenderConfiguration.setSenderGroup(String) instead. |
GridGainCacheConfiguration |
setConflictResolver(CacheConflictResolver conflictRslvr)
Sets conflict resolver.
|
GridGainCacheConfiguration |
setConflictResolverMode(CacheConflictMode conflictRslvrMode)
Sets conflict resolver mode.
|
GridGainCacheConfiguration |
setDrReceiverEnabled(boolean drReceiverEnabled)
Deprecated.
Use
CacheDrSenderConfiguration.setSenderGroup(String) instead. |
GridGainCacheConfiguration |
setDrSenderConfiguration(CacheDrSenderConfiguration drSndCacheCfg)
Sets data center replication send configuration.
|
String |
toString() |
public static final CacheConflictMode DFLT_CONFLICT_RSLVR_MODE
public GridGainCacheConfiguration()
public GridGainCacheConfiguration(GridGainCacheConfiguration cc)
cc
- Configuration to copy.public CacheDrSenderConfiguration getDrSenderConfiguration()
public GridGainCacheConfiguration setDrSenderConfiguration(CacheDrSenderConfiguration drSndCacheCfg)
getDrSenderConfiguration()
for more information.drSndCacheCfg
- Data center replication send configuration.this
for chaining.@Deprecated public boolean isDrReceiverEnabled()
CacheDrSenderConfiguration.setSenderGroup(String)
instead.@Deprecated public GridGainCacheConfiguration setDrReceiverEnabled(boolean drReceiverEnabled)
CacheDrSenderConfiguration.setSenderGroup(String)
instead.drReceiverEnabled
- enabled flag.this
for chaining.public CacheConflictMode getConflictResolverMode()
CacheConflictMode
for more information.
Defaults to DFLT_CONFLICT_RSLVR_MODE
.
public GridGainCacheConfiguration setConflictResolverMode(CacheConflictMode conflictRslvrMode)
getConflictResolverMode()
for
more information.conflictRslvrMode
- Conflict resolver mode.this
for chaining.public CacheConflictResolver getConflictResolver()
For CacheConflictMode.AUTO
mode this parameter can be null
and in
this case new entry will always overwrite the old one.
For CacheConflictMode.ALWAYS
mode this parameter is mandatory.
Default value is null
.
public GridGainCacheConfiguration setConflictResolver(CacheConflictResolver conflictRslvr)
getConflictResolver()
for more
information.
Defaults to null
.
conflictRslvr
- Conflict resolver.this
for chaining.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024