begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/**  *  * Licensed to the Apache Software Foundation (ASF) under one  * or more contributor license agreements.  See the NOTICE file  * distributed with this work for additional information  * regarding copyright ownership.  The ASF licenses this file  * to you under the Apache License, Version 2.0 (the  * "License"); you may not use this file except in compliance  * with the License.  You may obtain a copy of the License at  *  *     http://www.apache.org/licenses/LICENSE-2.0  *  * Unless required by applicable law or agreed to in writing, software  * distributed under the License is distributed on an "AS IS" BASIS,  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  * See the License for the specific language governing permissions and  * limitations under the License.  */
end_comment

begin_package
package|package
name|org
operator|.
name|apache
operator|.
name|hadoop
operator|.
name|hbase
operator|.
name|client
package|;
end_package

begin_import
import|import
name|org
operator|.
name|apache
operator|.
name|yetus
operator|.
name|audience
operator|.
name|InterfaceAudience
import|;
end_import

begin_comment
comment|/**  * 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.  */
end_comment

begin_interface
annotation|@
name|InterfaceAudience
operator|.
name|Private
specifier|public
interface|interface
name|NonceGenerator
block|{
specifier|static
specifier|final
name|String
name|CLIENT_NONCES_ENABLED_KEY
init|=
literal|"hbase.client.nonces.enabled"
decl_stmt|;
comment|/** @return the nonce group (client ID) of this client manager. */
name|long
name|getNonceGroup
parameter_list|()
function_decl|;
comment|/** @return New nonce. */
name|long
name|newNonce
parameter_list|()
function_decl|;
block|}
end_interface

end_unit

