public class GridGainCacheConfiguration extends Object implements org.apache.ignite.plugin.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 |
|---|---|
org.apache.ignite.plugin.CachePluginProvider |
createProvider(org.apache.ignite.plugin.CachePluginContext ctx)
Creates cache plugin provider.
|
CacheConflictResolver |
getConflictResolver()
Gets conflict resolver.
|
CacheConflictMode |
getConflictResolverMode()
Gets conflict resolver mode.
|
CacheDrSenderConfiguration |
getDrSenderConfiguration()
Gets data center replication send configuration.
|
boolean |
isDrReceiverEnabled()
Gets data center replication receiver enabled flag value.
|
boolean |
isKeepPortableInStore()
Deprecated.
GridGain Portable API is deprecated, no longer supported and will be removed in the nearest releases.
Use
CacheConfiguration.isStoreKeepBinary() in conjunction with new Apache Ignite API. |
boolean |
isPortableEnabled()
Deprecated.
|
void |
setConflictResolver(CacheConflictResolver conflictRslvr)
Sets conflict resolver.
|
void |
setConflictResolverMode(CacheConflictMode conflictRslvrMode)
Sets conflict resolver mode.
|
void |
setDrReceiverEnabled(boolean drReceiverEnabled)
Sets data center replication receiver enabled flag.
|
void |
setDrSenderConfiguration(CacheDrSenderConfiguration drSndCacheCfg)
Sets data center replication send configuration.
|
void |
setKeepPortableInStore(boolean keepPortableInStore)
Deprecated.
GridGain Portable API is deprecated, no longer supported and will be removed in the nearest releases.
Use
CacheConfiguration.setStoreKeepBinary(boolean) ()} in conjunction with new Apache Ignite API. |
void |
setPortableEnabled(boolean portableEnabled)
Deprecated.
|
String |
toString() |
public static final CacheConflictMode DFLT_CONFLICT_RSLVR_MODE
public GridGainCacheConfiguration()
public GridGainCacheConfiguration(GridGainCacheConfiguration cc)
cc - Configuration to copy.@Deprecated public boolean isPortableEnabled()
PortableObject.@Deprecated public void setPortableEnabled(boolean portableEnabled)
portableEnabled - Portable enabled flag value.@Deprecated public boolean isKeepPortableInStore()
CacheConfiguration.isStoreKeepBinary() in conjunction with new Apache Ignite API.CacheStore implementation
is working with portable objects instead of Java objects.
Default value of this flag is true,
because this is recommended behavior from performance standpoint.
If set to false, Ignite will deserialize keys and
values stored in portable format before they are passed
to cache store.
Note that setting this flag to false can simplify
store implementation in some cases, but it can cause performance
degradation due to additional serializations and deserializations
of portable objects. You will also need to have key and value
classes on all nodes since portables will be deserialized when
store is called.
@Deprecated public void setKeepPortableInStore(boolean keepPortableInStore)
CacheConfiguration.setStoreKeepBinary(boolean) ()} in conjunction with new Apache Ignite API.keepPortableInStore - Keep portables in store flag.@Nullable public CacheDrSenderConfiguration getDrSenderConfiguration()
public void setDrSenderConfiguration(CacheDrSenderConfiguration drSndCacheCfg)
getDrSenderConfiguration() for more information.drSndCacheCfg - Data center replication send configuration.public boolean isDrReceiverEnabled()
public void setDrReceiverEnabled(boolean drReceiverEnabled)
drReceiverEnabled - enabled flag.public CacheConflictMode getConflictResolverMode()
CacheConflictMode for more information.
Defaults to DFLT_CONFLICT_RSLVR_MODE.
public void setConflictResolverMode(CacheConflictMode conflictRslvrMode)
getConflictResolverMode() for
more information.conflictRslvrMode - Conflict resolver mode.@Nullable 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 void setConflictResolver(CacheConflictResolver conflictRslvr)
getConflictResolver() for more
information.
Defaults to null.
conflictRslvr - Conflict resolver.public org.apache.ignite.plugin.CachePluginProvider createProvider(org.apache.ignite.plugin.CachePluginContext ctx)
createProvider in interface org.apache.ignite.plugin.CachePluginConfigurationctx - Plugin context.
GridGain Fabric : ver. 7.8.12 Release Date : October 2 2017