org.apache.hadoop.hbase.client
Class PerClientRandomNonceGenerator

java.lang.Object
  extended by 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.


Constructor Summary
PerClientRandomNonceGenerator()
           
 
Method Summary
 long getNonceGroup()
           
 long newNonce()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerClientRandomNonceGenerator

public PerClientRandomNonceGenerator()
Method Detail

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.