org.apache.hadoop.hbase.client
Class PerClientRandomNonceGenerator
java.lang.Object
org.apache.hadoop.hbase.client.PerClientRandomNonceGenerator
- All Implemented Interfaces:
- NonceGenerator
@InterfaceAudience.Private
public class PerClientRandomNonceGenerator
- extends Object
- implements NonceGenerator
NonceGenerator implementation that uses client ID hash + random int as nonce group,
and random numbers as nonces.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerClientRandomNonceGenerator
public PerClientRandomNonceGenerator()
getNonceGroup
public long getNonceGroup()
- Specified by:
getNonceGroup
in interface NonceGenerator
- Returns:
- the nonce group (client ID) of this client manager.
newNonce
public long newNonce()
- Specified by:
newNonce
in interface NonceGenerator
- Returns:
- New nonce.
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.