org.ehcache.config
Interface ResourcePools


public interface ResourcePools

A collection of resource pools a cache has at its disposal to store its mappings.


Method Summary
 ResourcePool getPoolForResource(ResourceType resourceType)
          Get a specific ResourcePool based on its type.
 java.util.Set<ResourceType> getResourceTypeSet()
          Get the set of ResourceType of all the pools present in the ResourcePools
 

Method Detail

getPoolForResource

ResourcePool getPoolForResource(ResourceType resourceType)
Get a specific ResourcePool based on its type.

Parameters:
resourceType - the type of resource the pool is tracking.
Returns:
the ResourcePool, or null if there is no pool tracking the requested type.

getResourceTypeSet

java.util.Set<ResourceType> getResourceTypeSet()
Get the set of ResourceType of all the pools present in the ResourcePools

Returns:
the set of ResourceType