| Package | Description |
|---|---|
| org.bbottema.clusteredobjectpool.core | |
| org.bbottema.clusteredobjectpool.core.api |
| Modifier and Type | Method and Description |
|---|---|
@Nullable org.bbottema.genericobjectpool.PoolableObject<T> |
ResourceClusters.claimResourceFromPool(ResourceKey<ClusterKey,PoolKey> key)
Tries to claim the next resources from the pool in the given cluster.
|
boolean |
ResourceClusters.isPoolRegistered(@NotNull ResourceKey<ClusterKey,PoolKey> key) |
void |
ResourceClusters.registerResourcePool(ResourceKey<ClusterKey,PoolKey> key)
Delegates to
ResourceClusters.registerResourcePool(ResourceKey, ExpirationPolicy, int, int), using the global defaults for expiration policy, max pool size and sizing mode. |
void |
ResourceClusters.registerResourcePool(@NotNull ResourceKey<ClusterKey,PoolKey> key,
@NotNull org.bbottema.genericobjectpool.ExpirationPolicy<T> expirationPolicy,
int corePoolSize,
int maxPoolSize)
Registers a new pool for the given cluster.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceKey.ResourceClusterAndPoolKey<ClusterKey,PoolKey>
Can be used to register and claim resources with clustering.
|
static class |
ResourceKey.ResourcePoolKey<PoolKey>
Can be used to register and claim resources without clustering.
|
Copyright © 2019–2024. All rights reserved.