|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.core.config.ResourcePoolImpl
public class ResourcePoolImpl
Implementation of the ResourcePool
interface.
Constructor Summary | |
---|---|
ResourcePoolImpl(ResourceType type,
long size,
ResourceUnit unit,
boolean persistent)
Creates a new resource pool based on the provided parameters. |
Method Summary | |
---|---|
long |
getSize()
Get the value measuring the pool size. |
ResourceType |
getType()
Get the type of the tracked resource. |
ResourceUnit |
getUnit()
Get the unit in which the resource is measured. |
boolean |
isPersistent()
Whether the underlying resource is persistent |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourcePoolImpl(ResourceType type, long size, ResourceUnit unit, boolean persistent)
type
- the resource typesize
- the sizeunit
- the unit for the sizepersistent
- whether the pool is to be persistentMethod Detail |
---|
public ResourceType getType()
getType
in interface ResourcePool
public long getSize()
getSize
in interface ResourcePool
public ResourceUnit getUnit()
getUnit
in interface ResourcePool
public boolean isPersistent()
isPersistent
in interface ResourcePool
true
, if persistentpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |