public abstract class HBaseRpc extends Object
Implementations of this class are not expected to be synchronized.
byte
arrays in argumentbyte[]
in argument will copy it.
If you change the contents of any byte array you give to an instance of
this class, you may affect the behavior of the request in an
unpredictable way. If you need to change the byte array,
clone
it before giving it to this class. For those
familiar with the term "defensive copy", we don't do it in order to avoid
unnecessary memory copies when you know you won't be changing (or event
holding a reference to) the byte array, which is frequently the case.Modifier and Type | Class and Description |
---|---|
static interface |
HBaseRpc.HasFamily
An RPC from which you can get a family name.
|
static interface |
HBaseRpc.HasKey
An RPC from which you can get a row key name.
|
static interface |
HBaseRpc.HasQualifier
An RPC from which you can get a column qualifier name.
|
static interface |
HBaseRpc.HasQualifiers
An RPC from which you can get multiple column qualifier names.
|
static interface |
HBaseRpc.HasTable
An RPC from which you can get a table name.
|
static interface |
HBaseRpc.HasTimestamp
An RPC from which you can get a timestamp.
|
static interface |
HBaseRpc.HasValue
An RPC from which you can get a value.
|
static interface |
HBaseRpc.HasValues
An RPC from which you can get multiple values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
failfast()
Returns whether or not the RPC not be retried upon encountering a problem.
|
boolean |
setFailfast(boolean failfast)
Set whether or not the RPC not be retried upon encountering a problem.
|
String |
toString() |
public final boolean setFailfast(boolean failfast)
RPCs can be retried for various legitimate reasons (e.g. NSRE due to a region moving), but under certain failure circumstances (such as a node going down) we want to give up and be alerted as soon as possible.
failfast
- If true
, this RPC should fail-fast as soon as
we know we have a problem.public final boolean failfast()
setFailfast(boolean)