P - the type of ResourcePool implemented by the subclassT - the type of ResourceType related to the resource poolpublic abstract class AbstractResourcePool<P extends org.ehcache.config.ResourcePool,T extends org.ehcache.config.ResourceType<P>>
extends java.lang.Object
implements org.ehcache.config.ResourcePool
ResourcePool implementations.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractResourcePool(T type,
boolean persistent)
Creates a
AbstractResourcePool instance. |
| Modifier and Type | Method and Description |
|---|---|
T |
getType() |
boolean |
isPersistent() |
void |
validateUpdate(org.ehcache.config.ResourcePool newPool) |
protected AbstractResourcePool(T type, boolean persistent)
AbstractResourcePool instance.type - the non-null ResourceTypepersistent - whether or not this ResourcePool is persistentpublic T getType()
getType in interface org.ehcache.config.ResourcePoolpublic boolean isPersistent()
isPersistent in interface org.ehcache.config.ResourcePoolpublic void validateUpdate(org.ehcache.config.ResourcePool newPool)
validateUpdate in interface org.ehcache.config.ResourcePooljava.lang.IllegalArgumentException