| Package | Description |
|---|---|
| org.lable.oss.uniqueid.zookeeper |
| Modifier and Type | Class and Description |
|---|---|
class |
ExpiringResourceClaim
ResourceClaim that automatically relinquishes its hold on a resource
after a set amount of time. |
| Modifier and Type | Method and Description |
|---|---|
static ResourceClaim |
ResourceClaim.claim(ZooKeeperConnection zooKeeperConnection,
int poolSize,
String znode)
Claim a resource.
|
static ResourceClaim |
ExpiringResourceClaim.claimExpiring(ZooKeeperConnection zooKeeperConnection,
int poolSize,
String znode)
Claim a resource.
|
static ResourceClaim |
ExpiringResourceClaim.claimExpiring(ZooKeeperConnection zooKeeperConnection,
int poolSize,
String znode,
Long timeout)
Claim a resource.
|
| Constructor and Description |
|---|
ResourceClaimHolder(Supplier<ResourceClaim> freshClaimSupplier,
int clusterId) |
Copyright © 2014–2018 Lable. All rights reserved.