Package org.ehcache.config
Interface ResourcePool
- All Known Subinterfaces:
SizedResourcePool
public interface ResourcePool
A resource providing capacity to be used by
Caches.
Implementations must be immutable.
-
Method Summary
Modifier and TypeMethodDescriptionResourceType<?>getType()Get theResourceType.booleanIndicates whether the underlying resource is persistent.voidvalidateUpdate(ResourcePool newPool)
-
Method Details
-
getType
ResourceType<?> getType()Get theResourceType.- Returns:
- the resource type
-
isPersistent
boolean isPersistent()Indicates whether the underlying resource is persistent.Persistence in this context means that data stored will survive a JVM restart, unless destroyed.
- Returns:
trueif persistent,falseotherwise
-
validateUpdate
- Parameters:
newPool- the pool which is the candidate for replacing thisResourcePool- Throws:
IllegalArgumentException- ifnewPoolis not a valid replacement for thisResourcePool
-