public class GridCacheAttributes extends Object implements Externalizable
This class contains information on a single cache configured on some node.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
swapEnabled
Flag indicating whether GridGain should use swap storage by default.
|
| Constructor and Description |
|---|
GridCacheAttributes()
Public no-arg constructor for
Externalizable. |
GridCacheAttributes(GridCacheConfiguration cfg) |
protected boolean swapEnabled
public GridCacheAttributes(GridCacheConfiguration cfg)
cfg - Cache configuration.public GridCacheAttributes()
Externalizable.public String cacheName()
public GridCacheMode cacheMode()
public GridCacheAtomicityMode atomicityMode()
public boolean nearCacheEnabled()
True if near cache is enabled.public boolean isAffinityNode()
True if the local node will not contribute any local storage to this
cache, false otherwise.public GridCachePreloadMode cachePreloadMode()
public String cacheAffinityClassName()
public String cacheAffinityMapperClassName()
public boolean affinityIncludeNeighbors()
public int affinityKeyBackups()
public int affinityReplicas()
public int affinityPartitionsCount()
public String affinityReplicaCountAttrName()
public String affinityHashIdResolverClassName()
public String clonerClassName()
public String evictionFilterClassName()
public String evictionPolicyClassName()
public String nearEvictionPolicyClassName()
public String storeClassName()
public String transactionManagerLookupClassName()
public boolean swapEnabled()
True if swap enabled.public long defaultTimeToLive()
public boolean evictSynchronized()
public boolean evictNearSynchronized()
public float evictMaxOverflowRatio()
public GridCacheTxIsolation defaultIsolation()
public GridCacheTxConcurrency defaultConcurrency()
public GridCacheDistributionMode partitionedTaxonomy()
public boolean txSerializableEnabled()
public boolean txBatchUpdate()
public long defaultTxTimeout()
public long defaultQueryTimeout()
public long defaultLockTimeout()
public boolean storeValueBytes()
public int preloadBatchSize()
public long dgcFrequency()
public long dgcSuspectLockTimeout()
public boolean dgcRemoveLocks()
public GridCacheWriteSynchronizationMode writeSynchronization()
public boolean queryIndexEnabled()
public boolean storeEnabled()
public boolean writeBehindEnabled()
public int writeBehindFlushSize()
public long writeBehindFlushFrequency()
public int writeBehindFlushThreadCount()
public int writeBehindBatchSize()
public int sequenceReserveSize()
public String indexingSpiName()
@Nullable public GridCacheDrReceiveAttributes drReceiveAttributes()
@Nullable public GridCacheDrSendAttributes drSendAttributes()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2014. All rights reserved.