Interface CacheProperties
public interface CacheProperties
Exposes a cache configuration as simple high-level properties.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisActive()Indicates whether or not the cache is active.booleanIndicates whether the associated cache requires eager locking for cache reads.booleanIndicates whether the associated cache uses eager locking for cache writes.booleanIndicates whether the mode of this cache requires marshalling of cache valuesbooleanIndicates whether cache operations should assume immediate marshalling/unmarshalling of the value.booleanIndicates 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.
-