Package org.wildfly.clustering.ee.cache
Interface CacheProperties
-
public interface CachePropertiesExposes a cache configuration as simple high-level properties.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisLockOnRead()Indicates whether the associated cache requires eager locking for cache reads.booleanisLockOnWrite()Indicates whether the associated cache uses eager locking for cache writes.booleanisMarshalling()Indicates whether the mode of this cache requires marshalling of cache valuesbooleanisPersistent()Indicates whether cache operations should assume immediate marshalling/unmarshalling of the value.booleanisTransactional()Indicates whether the cache is transactional.
-
-
-
Method Detail
-
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.
-
-