Interface CacheProperties

All Known Implementing Classes:
EmbeddedCacheProperties, RemoteCacheProperties

public interface CacheProperties
Exposes a cache configuration as simple high-level properties.
Author:
Paul Ferraro
  • 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.
  • Method Details

    • isLockOnRead

      boolean isLockOnRead()
      Indicates whether the associated cache requires eager locking for cache reads.
      Returns:
      true, if the cache client should perform reads under lock, false otherwise
    • isLockOnWrite

      boolean isLockOnWrite()
      Indicates whether the associated cache uses eager locking for cache writes.
      Returns:
      true, if the cache client should perform writes under lock, false otherwise
    • isMarshalling

      boolean isMarshalling()
      Indicates whether the mode of this cache requires marshalling of cache values
      Returns:
      true, if cache values need to be marshallable, false otherwise.
    • isPersistent

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

      boolean isTransactional()
      Indicates whether the cache is transactional.
      Returns:
      true, if this cache is transactional, false otherwise.
    • isActive

      boolean isActive()
      Indicates whether or not the cache is active.
      Returns:
      true, if this cache is active, false otherwise.