Class GridCacheAttributes

  • All Implemented Interfaces:
    Serializable

    public class GridCacheAttributes
    extends Object
    implements Serializable
    Cache attributes.

    This class contains information on a single cache configured on some node.

    See Also:
    Serialized Form
    • Constructor Detail

      • GridCacheAttributes

        public GridCacheAttributes​(CacheConfiguration cfg)
        Creates a new instance of cache attributes.
        Parameters:
        cfg - Cache configuration.
      • GridCacheAttributes

        public GridCacheAttributes​(CacheConfiguration cfg,
                                   CacheConfigurationEnrichment enrichment)
        Creates a new instance of cache attributes.
        Parameters:
        cfg - Cache configuration.
        enrichment - Cache configuration enrichment.
    • Method Detail

      • groupName

        public String groupName()
        Returns:
        Cache group name.
      • cacheName

        public String cacheName()
        Returns:
        Cache name.
      • qryParallelism

        public int qryParallelism()
        Returns:
        Query parallelism.
      • cacheMode

        public CacheMode cacheMode()
        Returns:
        Cache mode.
      • atomicityMode

        public CacheAtomicityMode atomicityMode()
        Returns:
        Cache atomicity mode.
      • nearCacheEnabled

        public boolean nearCacheEnabled()
        Returns:
        True if near cache is enabled.
      • cacheRebalanceMode

        public CacheRebalanceMode cacheRebalanceMode()
        Returns:
        Preload mode.
      • cacheAffinityClassName

        public String cacheAffinityClassName()
        Returns:
        Affinity class name.
      • cacheAffinityMapperClassName

        public String cacheAffinityMapperClassName()
        Returns:
        Affinity mapper class name.
      • affinityIncludeNeighbors

        public boolean affinityIncludeNeighbors()
        Returns:
        Affinity include neighbors.
      • affinityKeyBackups

        public int affinityKeyBackups()
        Returns:
        Affinity key backups.
      • affinityPartitionsCount

        public int affinityPartitionsCount()
        Returns:
        Affinity partitions count.
      • evictionFilterClassName

        public String evictionFilterClassName()
        Returns:
        Eviction filter class name.
      • evictionPolicyClassName

        @Deprecated
        public String evictionPolicyClassName()
        Deprecated.
        Use evictionPolicyFactoryClassName() instead.
        Returns:
        Eviction policy class name.
      • evictionPolicyFactoryClassName

        public String evictionPolicyFactoryClassName()
        Returns:
        Eviction policy factory class name.
      • nearEvictionPolicyClassName

        public String nearEvictionPolicyClassName()
        Deprecated.
        Use nearEvictionPolicyFactoryClassName() instead.
        Returns:
        Near eviction policy class name.
      • nearEvictionPolicyFactoryClassName

        public String nearEvictionPolicyFactoryClassName()
        Returns:
        Near eviction policy factory class name.
      • storeFactoryClassName

        public String storeFactoryClassName()
        Returns:
        Store class name.
      • defaultLockTimeout

        public long defaultLockTimeout()
        Returns:
        Default lock timeout.
      • rebalanceDelay

        public long rebalanceDelay()
        Returns:
        Rebalance delay.
      • rebalanceOrder

        public int rebalanceOrder()
        Returns:
        Rebalance order.
      • readThrough

        public boolean readThrough()
        Returns:
        Flag indicating whether read-through behaviour is enabled.
      • writeThrough

        public boolean writeThrough()
        Returns:
        Flag indicating whether read-through behaviour is enabled.
      • loadPreviousValue

        public boolean loadPreviousValue()
        Returns:
        Flag indicating whether old value is loaded from store for cache operation.
      • writeBehindEnabled

        public boolean writeBehindEnabled()
        Returns:
        Flag indicating whether Ignite should use write-behind behaviour for the cache store.
      • writeBehindFlushSize

        public int writeBehindFlushSize()
        Returns:
        Maximum size of write-behind cache.
      • writeBehindFlushFrequency

        public long writeBehindFlushFrequency()
        Returns:
        Write-behind flush frequency in milliseconds.
      • writeBehindFlushThreadCount

        public int writeBehindFlushThreadCount()
        Returns:
        Flush thread count for write-behind cache store.
      • writeBehindBatchSize

        public int writeBehindBatchSize()
        Returns:
        Maximum batch size for write-behind cache store.
      • writeBehindCoalescing

        public boolean writeBehindCoalescing()
        Returns:
        Write coalescing flag.
      • interceptorClassName

        public String interceptorClassName()
        Returns:
        Interceptor class name.
      • isEncryptionEnabled

        public boolean isEncryptionEnabled()
        Returns:
        Is cache encryption enabled.