Package org.apache.hadoop.hbase.client
Class TestAsyncProcess.MyClientBackoffPolicy
java.lang.Object
org.apache.hadoop.hbase.client.TestAsyncProcess.MyClientBackoffPolicy
- All Implemented Interfaces:
org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy
- Enclosing class:
- TestAsyncProcess
static class TestAsyncProcess.MyClientBackoffPolicy
extends Object
implements org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy
Make the backoff time always different on each call.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<org.apache.hadoop.hbase.ServerName,
AtomicInteger> Fields inherited from interface org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy
BACKOFF_POLICY_CLASS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getBackoffTime
(org.apache.hadoop.hbase.ServerName serverName, byte[] region, org.apache.hadoop.hbase.client.backoff.ServerStatistics stats)
-
Field Details
-
count
-
-
Constructor Details
-
MyClientBackoffPolicy
-
-
Method Details
-
getBackoffTime
public long getBackoffTime(org.apache.hadoop.hbase.ServerName serverName, byte[] region, org.apache.hadoop.hbase.client.backoff.ServerStatistics stats) - Specified by:
getBackoffTime
in interfaceorg.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy
-