P - resource pool typepublic class SizedResourcePoolImpl<P extends org.ehcache.config.SizedResourcePool> extends AbstractResourcePool<P,org.ehcache.config.ResourceType<P>> implements org.ehcache.config.SizedResourcePool, org.ehcache.core.HumanReadable
SizedResourcePool interface.| Constructor and Description |
|---|
SizedResourcePoolImpl(org.ehcache.config.ResourceType<P> type,
long size,
org.ehcache.config.ResourceUnit unit,
boolean persistent)
Creates a new resource pool based on the provided parameters.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getSize() |
org.ehcache.config.ResourceUnit |
getUnit() |
java.lang.String |
readableString() |
java.lang.String |
toString() |
void |
validateUpdate(org.ehcache.config.ResourcePool newPool) |
getType, isPersistentpublic SizedResourcePoolImpl(org.ehcache.config.ResourceType<P> type, long size, org.ehcache.config.ResourceUnit unit, boolean persistent)
type - the resource typesize - the sizeunit - the unit for the sizepersistent - whether the pool is to be persistentpublic long getSize()
getSize in interface org.ehcache.config.SizedResourcePoolpublic org.ehcache.config.ResourceUnit getUnit()
getUnit in interface org.ehcache.config.SizedResourcePoolpublic void validateUpdate(org.ehcache.config.ResourcePool newPool)
validateUpdate in interface org.ehcache.config.ResourcePoolvalidateUpdate in class AbstractResourcePool<P extends org.ehcache.config.SizedResourcePool,org.ehcache.config.ResourceType<P extends org.ehcache.config.SizedResourcePool>>java.lang.IllegalArgumentExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String readableString()
readableString in interface org.ehcache.core.HumanReadable