Package org.ehcache.config
Interface ResourcePool
-
- All Known Subinterfaces:
SizedResourcePool
public interface ResourcePoolA resource providing capacity to be used byCaches.Implementations must be immutable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceType<?>getType()Get theResourceType.booleanisPersistent()Indicates whether the underlying resource is persistent.voidvalidateUpdate(ResourcePool newPool)
-
-
-
Method Detail
-
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
void validateUpdate(ResourcePool newPool)
- Parameters:
newPool- the pool which is the candidate for replacing thisResourcePool- Throws:
java.lang.IllegalArgumentException- ifnewPoolis not a valid replacement for thisResourcePool
-
-