Class EmbeddedCacheProperties

java.lang.Object
org.wildfly.clustering.cache.infinispan.embedded.EmbeddedCacheProperties
All Implemented Interfaces:
CacheProperties

public class EmbeddedCacheProperties extends Object implements CacheProperties
Eagerly calculates the properties of a cache configuration.
Author:
Paul Ferraro
  • Constructor Summary

    Constructors
    Constructor
    Description
    EmbeddedCacheProperties(org.infinispan.Cache<?,?> cache)
     
    EmbeddedCacheProperties(org.infinispan.configuration.cache.Configuration configuration)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether or not the cache is active.
    boolean
    Indicates whether the associated cache requires eager locking for cache reads.
    boolean
    Indicates whether the associated cache uses eager locking for cache writes.
    boolean
    Indicates whether the mode of this cache requires marshalling of cache values
    boolean
    Indicates whether cache operations should assume immediate marshalling/unmarshalling of the value.
    boolean
    Indicates whether the cache is transactional.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EmbeddedCacheProperties

      public EmbeddedCacheProperties(org.infinispan.Cache<?,?> cache)
    • EmbeddedCacheProperties

      public EmbeddedCacheProperties(org.infinispan.configuration.cache.Configuration configuration)
  • Method Details

    • isPersistent

      public boolean isPersistent()
      Description copied from interface: CacheProperties
      Indicates whether cache operations should assume immediate marshalling/unmarshalling of the value.
      Specified by:
      isPersistent in interface CacheProperties
      Returns:
      true, if the cache client will need to handle passivation/activation notifications on read/write, false otherwise
    • isTransactional

      public boolean isTransactional()
      Description copied from interface: CacheProperties
      Indicates whether the cache is transactional.
      Specified by:
      isTransactional in interface CacheProperties
      Returns:
      true, if this cache is transactional, false otherwise.
    • isLockOnRead

      public boolean isLockOnRead()
      Description copied from interface: CacheProperties
      Indicates whether the associated cache requires eager locking for cache reads.
      Specified by:
      isLockOnRead in interface CacheProperties
      Returns:
      true, if the cache client should perform reads under lock, false otherwise
    • isLockOnWrite

      public boolean isLockOnWrite()
      Description copied from interface: CacheProperties
      Indicates whether the associated cache uses eager locking for cache writes.
      Specified by:
      isLockOnWrite in interface CacheProperties
      Returns:
      true, if the cache client should perform writes under lock, false otherwise
    • isMarshalling

      public boolean isMarshalling()
      Description copied from interface: CacheProperties
      Indicates whether the mode of this cache requires marshalling of cache values
      Specified by:
      isMarshalling in interface CacheProperties
      Returns:
      true, if cache values need to be marshallable, false otherwise.
    • isActive

      public boolean isActive()
      Description copied from interface: CacheProperties
      Indicates whether or not the cache is active.
      Specified by:
      isActive in interface CacheProperties
      Returns:
      true, if this cache is active, false otherwise.