Skip navigation links
B C D E G O R S V Z 

B

basedOn(String, String, Supplier<Duration>) - Static method in class org.lable.oss.uniqueid.zookeeper.SynchronizedGeneratorIdentity
Create a new SynchronizedGeneratorIdentity instance.
basedOn(String, String, Long) - Static method in class org.lable.oss.uniqueid.zookeeper.SynchronizedGeneratorIdentity
Create a new SynchronizedGeneratorIdentity instance.

C

claim(ZooKeeperConnection, int, String) - Static method in class org.lable.oss.uniqueid.zookeeper.ResourceClaim
Claim a resource.
claimExpiring(ZooKeeperConnection, int, String) - Static method in class org.lable.oss.uniqueid.zookeeper.ExpiringResourceClaim
Claim a resource.
claimExpiring(ZooKeeperConnection, int, String, Long) - Static method in class org.lable.oss.uniqueid.zookeeper.ExpiringResourceClaim
Claim a resource.
close() - Method in class org.lable.oss.uniqueid.zookeeper.ResourceClaim
Relinquish the claim to this resource, and release it back to the resource pool.
close(boolean) - Method in class org.lable.oss.uniqueid.zookeeper.ResourceClaim
 
close() - Method in class org.lable.oss.uniqueid.zookeeper.SynchronizedGeneratorIdentity
 
ClusterID - Class in org.lable.oss.uniqueid.zookeeper
Retrieves the numeric cluster ID from the ZooKeeper quorum.
ClusterID() - Constructor for class org.lable.oss.uniqueid.zookeeper.ClusterID
 
connected() - Method in interface org.lable.oss.uniqueid.zookeeper.connection.ZooKeeperConnectionObserver
Called when the connection to the ZooKeeper quorum is established.
connected() - Method in class org.lable.oss.uniqueid.zookeeper.ResourceClaim
 

D

DEFAULT_TIMEOUT - Static variable in class org.lable.oss.uniqueid.zookeeper.ExpiringResourceClaim
 
deregisterObserver(ZooKeeperConnectionObserver) - Method in class org.lable.oss.uniqueid.zookeeper.connection.ZooKeeperConnection
 
disconnected() - Method in interface org.lable.oss.uniqueid.zookeeper.connection.ZooKeeperConnectionObserver
Called when the connection to the ZooKeeper quorum was interrupted.
disconnected() - Method in class org.lable.oss.uniqueid.zookeeper.ResourceClaim
 

E

ExpiringResourceClaim - Class in org.lable.oss.uniqueid.zookeeper
ResourceClaim that automatically relinquishes its hold on a resource after a set amount of time.

G

generatorFor(ZooKeeperConnection, String, Mode) - Static method in class org.lable.oss.uniqueid.zookeeper.SynchronizedUniqueIDGeneratorFactory
Get the synchronized ID generator instance.
generatorFor(SynchronizedGeneratorIdentity, Mode) - Static method in class org.lable.oss.uniqueid.zookeeper.SynchronizedUniqueIDGeneratorFactory
Get the synchronized ID generator instance.
get(ZooKeeper, String) - Static method in class org.lable.oss.uniqueid.zookeeper.ClusterID
Retrieves the numeric cluster ID from the ZooKeeper quorum.
get() - Method in class org.lable.oss.uniqueid.zookeeper.connection.ZooKeeperConnection
Get the connection to the ZooKeeper quorum maintained by this class.
get() - Method in class org.lable.oss.uniqueid.zookeeper.ResourceClaim
Get the claimed resource.
getActiveConnection() - Method in class org.lable.oss.uniqueid.zookeeper.connection.ZooKeeperConnection
Get a connection to the ZooKeeper quorum that is guaranteed to be in a connected state.
getClusterId() - Method in class org.lable.oss.uniqueid.zookeeper.ResourceClaimHolder
 
getClusterId() - Method in class org.lable.oss.uniqueid.zookeeper.SynchronizedGeneratorIdentity
 
getConfiguredZNode() - Method in class org.lable.oss.uniqueid.zookeeper.ResourceClaim
 
getGeneratorId() - Method in class org.lable.oss.uniqueid.zookeeper.SynchronizedGeneratorIdentity
 
getResourceId() - Method in class org.lable.oss.uniqueid.zookeeper.ResourceClaimHolder
 
getZNode() - Method in class org.lable.oss.uniqueid.zookeeper.SynchronizedGeneratorIdentity
 

O

org.lable.oss.uniqueid.zookeeper - package org.lable.oss.uniqueid.zookeeper
 
org.lable.oss.uniqueid.zookeeper.connection - package org.lable.oss.uniqueid.zookeeper.connection
 

R

registerObserver(ZooKeeperConnectionObserver) - Method in class org.lable.oss.uniqueid.zookeeper.connection.ZooKeeperConnection
 
relinquishGeneratorIdClaim() - Method in class org.lable.oss.uniqueid.zookeeper.SynchronizedGeneratorIdentity
 
reset() - Method in class org.lable.oss.uniqueid.zookeeper.connection.ZooKeeperConnection
Remove any preexisting ZooKeeper connection instance.
ResourceClaim - Class in org.lable.oss.uniqueid.zookeeper
Represents a claim on resource (represented by an int) from a finite pool of resources negotiated through a queueing protocol facilitated by a ZooKeeper-quorum.
ResourceClaim.State - Enum in org.lable.oss.uniqueid.zookeeper
Internal state of this ResourceClaim.
ResourceClaimHolder - Class in org.lable.oss.uniqueid.zookeeper
 
ResourceClaimHolder(Supplier<ResourceClaim>, int) - Constructor for class org.lable.oss.uniqueid.zookeeper.ResourceClaimHolder
 

S

shutdown() - Method in class org.lable.oss.uniqueid.zookeeper.connection.ZooKeeperConnection
 
state - Variable in class org.lable.oss.uniqueid.zookeeper.ResourceClaim
 
SynchronizedGeneratorIdentity - Class in org.lable.oss.uniqueid.zookeeper
Implementation of GeneratorIdentityHolder that holds and reacquires when necessary a claim to a generator-ID.
SynchronizedGeneratorIdentity(ZooKeeperConnection, String, int, Supplier<Duration>) - Constructor for class org.lable.oss.uniqueid.zookeeper.SynchronizedGeneratorIdentity
 
SynchronizedUniqueIDGeneratorFactory - Class in org.lable.oss.uniqueid.zookeeper
Create an IDGenerator capable of generating unique identifiers in a distributed environment with multiple services generating them.
SynchronizedUniqueIDGeneratorFactory() - Constructor for class org.lable.oss.uniqueid.zookeeper.SynchronizedUniqueIDGeneratorFactory
 

V

valueOf(String) - Static method in enum org.lable.oss.uniqueid.zookeeper.ResourceClaim.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.lable.oss.uniqueid.zookeeper.ResourceClaim.State
Returns an array containing the constants of this enum type, in the order they are declared.

Z

ZooKeeperConnection - Class in org.lable.oss.uniqueid.zookeeper.connection
Singleton for a ZooKeeper connection object instance.
ZooKeeperConnection(String) - Constructor for class org.lable.oss.uniqueid.zookeeper.connection.ZooKeeperConnection
 
ZooKeeperConnectionObserver - Interface in org.lable.oss.uniqueid.zookeeper.connection
Implementing classes wish to be notified of changes in the status of the connection to the ZooKeeper quorum.
ZooKeeperHelper - Class in org.lable.oss.uniqueid.zookeeper
A collection of short hand static methods for common ZooKeeper operations.
ZooKeeperHelper() - Constructor for class org.lable.oss.uniqueid.zookeeper.ZooKeeperHelper
 
B C D E G O R S V Z 
Skip navigation links

Copyright © 2014–2018 Lable. All rights reserved.