Class EmbeddedCacheProperties
java.lang.Object
org.wildfly.clustering.cache.infinispan.embedded.EmbeddedCacheProperties
- All Implemented Interfaces:
CacheProperties
Eagerly calculates the properties of a cache configuration.
- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
EmbeddedCacheProperties
public EmbeddedCacheProperties(org.infinispan.Cache<?, ?> cache)
-
-
Method Details
-
isPersistent
public boolean isPersistent()Description copied from interface:CachePropertiesIndicates whether cache operations should assume immediate marshalling/unmarshalling of the value.- Specified by:
isPersistentin interfaceCacheProperties- 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:CachePropertiesIndicates whether the cache is transactional.- Specified by:
isTransactionalin interfaceCacheProperties- Returns:
- true, if this cache is transactional, false otherwise.
-
isLockOnRead
public boolean isLockOnRead()Description copied from interface:CachePropertiesIndicates whether the associated cache requires eager locking for cache reads.- Specified by:
isLockOnReadin interfaceCacheProperties- Returns:
- true, if the cache client should perform reads under lock, false otherwise
-
isLockOnWrite
public boolean isLockOnWrite()Description copied from interface:CachePropertiesIndicates whether the associated cache uses eager locking for cache writes.- Specified by:
isLockOnWritein interfaceCacheProperties- Returns:
- true, if the cache client should perform writes under lock, false otherwise
-
isMarshalling
public boolean isMarshalling()Description copied from interface:CachePropertiesIndicates whether the mode of this cache requires marshalling of cache values- Specified by:
isMarshallingin interfaceCacheProperties- Returns:
- true, if cache values need to be marshallable, false otherwise.
-
isActive
public boolean isActive()Description copied from interface:CachePropertiesIndicates whether or not the cache is active.- Specified by:
isActivein interfaceCacheProperties- Returns:
- true, if this cache is active, false otherwise.
-