|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.core.config.ResourcePoolsImpl
public class ResourcePoolsImpl
Constructor Summary | |
---|---|
ResourcePoolsImpl(java.util.Map<ResourceType,ResourcePool> pools)
|
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 |
ResourcePools |
validateAndMerge(ResourcePools toBeUpdated)
Get a copy of the current ResourcePools merged with another ResourcePools and validate that
the updates to the contained ResourcePool s are legal. |
static void |
validateResourcePools(java.util.Collection<? extends ResourcePool> pools)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourcePoolsImpl(java.util.Map<ResourceType,ResourcePool> pools)
Method Detail |
---|
public ResourcePool getPoolForResource(ResourceType resourceType)
ResourcePools
ResourcePool
based on its type.
getPoolForResource
in interface ResourcePools
resourceType
- the type of resource the pool is tracking.
ResourcePool
, or null if there is no pool tracking the requested type.public java.util.Set<ResourceType> getResourceTypeSet()
ResourcePools
ResourceType
of all the pools present in the ResourcePools
getResourceTypeSet
in interface ResourcePools
ResourceType
public ResourcePools validateAndMerge(ResourcePools toBeUpdated)
ResourcePools
ResourcePools
merged with another ResourcePools
and validate that
the updates to the contained ResourcePool
s are legal.
validateAndMerge
in interface ResourcePools
toBeUpdated
- the ResourcePools
to merge with the current one.
ResourcePools
copy.public static void validateResourcePools(java.util.Collection<? extends ResourcePool> pools)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |