org.apache.hadoop.hbase.client
Interface NonceGenerator

All Known Implementing Classes:
PerClientRandomNonceGenerator

@InterfaceAudience.Private
public interface NonceGenerator

NonceGenerator interface. In general, nonce group is an ID (one per client, or region+client, or whatever) that could be used to reduce collision potential, or be used by compatible server nonce manager to optimize nonce storage and removal. See HBASE-3787.


Method Summary
 long getNonceGroup()
           
 long newNonce()
           
 

Method Detail

getNonceGroup

long getNonceGroup()
Returns:
the nonce group (client ID) of this client manager.

newNonce

long newNonce()
Returns:
New nonce.


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.