org.ehcache.core.config
Class ResourcePoolImpl

java.lang.Object
  extended by org.ehcache.core.config.ResourcePoolImpl
All Implemented Interfaces:
ResourcePool

public class ResourcePoolImpl
extends java.lang.Object
implements ResourcePool


Constructor Summary
ResourcePoolImpl(ResourceType type, long size, ResourceUnit unit, boolean persistent)
           
 
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

ResourcePoolImpl

public ResourcePoolImpl(ResourceType type,
                        long size,
                        ResourceUnit unit,
                        boolean persistent)
Method Detail

getType

public ResourceType getType()
Description copied from interface: ResourcePool
Get the type of the tracked resource.

Specified by:
getType in interface ResourcePool
Returns:
the type.

getSize

public long getSize()
Description copied from interface: ResourcePool
Get the value measuring the pool size.

Specified by:
getSize in interface ResourcePool
Returns:
the value.

getUnit

public ResourceUnit getUnit()
Description copied from interface: ResourcePool
Get the unit in which the resource is measured.

Specified by:
getUnit in interface ResourcePool
Returns:
the unit.

isPersistent

public boolean isPersistent()
Description copied from interface: ResourcePool
Whether the underlying resource is persistent

Specified by:
isPersistent in interface ResourcePool
Returns:
true, if persistent

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object