public final class ClusteredRestartableResourcePoolBuilder
extends java.lang.Object
ResourcePool
for a restartable clustered resource.Modifier and Type | Method and Description |
---|---|
static DedicatedClusteredResourcePool |
clusteredRestartableDedicated(long size,
MemoryUnit unit)
Creates a new restartable clustered resource pool using dedicated clustered resources supporting synchronous
writes to restart log.
|
static DedicatedClusteredResourcePool |
clusteredRestartableDedicated(long size,
MemoryUnit unit,
int dataPercent)
Creates a new restartable clustered resource pool using dedicated clustered resources.
|
static DedicatedClusteredResourcePool |
clusteredRestartableDedicated(java.lang.String fromResource,
long size,
MemoryUnit unit)
Creates a new restartable clustered resource pool with synchronous writes to restart log using dedicated
clustered resources, given a server based resource name.
|
static DedicatedClusteredResourcePool |
clusteredRestartableDedicated(java.lang.String fromResource,
long size,
MemoryUnit unit,
int dataPercent)
Creates a new restartable clustered resource pool with synchronous writes to restart log using
dedicated clustered resources, given a server based resource name.
|
static SharedClusteredResourcePool |
clusteredRestartableShared(java.lang.String sharedResource)
Creates a new restartable shared resource pool based on the provided parameters.
|
public static DedicatedClusteredResourcePool clusteredRestartableDedicated(long size, MemoryUnit unit)
size
- the sizeunit
- the unit for the sizepublic static DedicatedClusteredResourcePool clusteredRestartableDedicated(long size, MemoryUnit unit, int dataPercent)
dataPercent
allows the user to override the percentage of the offHeap that will be reserved for user data.
Applicable for hybrid with partial data caching.
size
- the sizeunit
- the unit for the sizedataPercent
- controls what percentage of offHeap to use for user data cachepublic static DedicatedClusteredResourcePool clusteredRestartableDedicated(java.lang.String fromResource, long size, MemoryUnit unit)
fromResource
- the name of the server-based resource from which this dedicated resource pool
is reserved; may be null
size
- the sizeunit
- the unit for the sizepublic static DedicatedClusteredResourcePool clusteredRestartableDedicated(java.lang.String fromResource, long size, MemoryUnit unit, int dataPercent)
Available only for hybrid cache managers.
fromResource
- the name of the server-based resource from which this dedicated resource pool
is reserved; may be null
size
- the sizeunit
- the unit for the sizedataPercent
- controls the percentage of offheap to be reserved for user data for partial data cachingpublic static SharedClusteredResourcePool clusteredRestartableShared(java.lang.String sharedResource)
sharedResource
- the non-null
name of the server-based resource pool whose space is shared
by this pool