Package org.apache.hadoop.hbase.client
Interface RpcRetryingCaller<T>
- All Known Implementing Classes:
RpcRetryingCallerImpl
-
Method Summary
Modifier and TypeMethodDescriptioncallWithoutRetries
(RetryingCallable<T> callable, int callTimeout) Call the server once only.callWithRetries
(RetryingCallable<T> callable, int callTimeout) Retries if invocation fails.void
cancel()
-
Method Details
-
cancel
void cancel() -
callWithRetries
T callWithRetries(RetryingCallable<T> callable, int callTimeout) throws IOException, RuntimeException Retries if invocation fails.- Parameters:
callTimeout
- Timeout for this callcallable
- TheRetryingCallable
to run.- Returns:
- an object of type T
- Throws:
IOException
- if a remote or network exception occursRuntimeException
- other unspecified error
-
callWithoutRetries
T callWithoutRetries(RetryingCallable<T> callable, int callTimeout) throws IOException, RuntimeException Call the server once only.RetryingCallable
has a strange shape so we can do retries. Use this invocation if you want to do a single call only (A call toRetryingCallable.call(int)
will not likely succeed).- Returns:
- an object of type T
- Throws:
IOException
- if a remote or network exception occursRuntimeException
- other unspecified error
-