| Package | Description |
|---|---|
| org.lable.oss.uniqueid.zookeeper |
| 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.
|
static IDGenerator |
SynchronizedUniqueIDGeneratorFactory.generatorFor(ZooKeeperConnection zooKeeperConnection,
String znode)
Get the synchronized ID generator instance.
|
| Constructor and Description |
|---|
SynchronizedGeneratorIdentity(ZooKeeperConnection zooKeeperConnection,
String zNode,
int clusterId,
Supplier<Duration> claimDurationSupplier) |
Copyright © 2014–2017 Lable. All rights reserved.