public final class ClusteredResourcePoolBuilder
extends java.lang.Object
ResourcePool for a clustered resource.| Modifier and Type | Method and Description |
|---|---|
static ClusteredResourcePool |
clustered()
Creates a resource pool that inherits the resources already configured on the server.
|
static DedicatedClusteredResourcePool |
clusteredDedicated(long size,
org.ehcache.config.units.MemoryUnit unit)
Creates a new clustered resource pool using dedicated clustered resources.
|
static DedicatedClusteredResourcePool |
clusteredDedicated(java.lang.String fromResource,
long size,
org.ehcache.config.units.MemoryUnit unit)
Creates a new clustered resource pool using dedicated clustered resources.
|
static SharedClusteredResourcePool |
clusteredShared(java.lang.String sharedResource)
Creates a new resource pool based on the provided parameters.
|
public static DedicatedClusteredResourcePool clusteredDedicated(long size, org.ehcache.config.units.MemoryUnit unit)
size - the sizeunit - the unit for the sizepublic static DedicatedClusteredResourcePool clusteredDedicated(java.lang.String fromResource, long size, org.ehcache.config.units.MemoryUnit unit)
fromResource - the name of the server-based resource from which this dedicated resource pool
is reserved; may be nullsize - the sizeunit - the unit for the sizepublic static SharedClusteredResourcePool clusteredShared(java.lang.String sharedResource)
sharedResource - the non-null name of the server-based resource pool whose space is shared
by this poolpublic static ClusteredResourcePool clustered()