Package org.apache.hadoop.hbase.client
Class NoOpRetryableCallerInterceptor
java.lang.Object
org.apache.hadoop.hbase.client.RetryingCallerInterceptor
org.apache.hadoop.hbase.client.NoOpRetryableCallerInterceptor
Class that acts as a NoOpInterceptor. This class is used in case the RetryingCallerInterceptor
was not configured correctly or an RetryingCallerInterceptor was never configured in the first
place.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis returns the context object for the current call.void
handleFailure
(RetryingCallerInterceptorContext context, Throwable t) Call this function in case we caught a failure during retries.void
intercept
(RetryingCallerInterceptorContext abstractRetryingCallerInterceptorContext) Call this function alongside the actual call done on the callable.toString()
void
Call this function to update at the end of the retry.
-
Field Details
-
NO_OP_CONTEXT
-
-
Constructor Details
-
NoOpRetryableCallerInterceptor
public NoOpRetryableCallerInterceptor() -
NoOpRetryableCallerInterceptor
-
-
Method Details
-
intercept
public void intercept(RetryingCallerInterceptorContext abstractRetryingCallerInterceptorContext) throws PreemptiveFastFailException Description copied from class:RetryingCallerInterceptor
Call this function alongside the actual call done on the callable.- Specified by:
intercept
in classRetryingCallerInterceptor
- Throws:
PreemptiveFastFailException
-
handleFailure
Description copied from class:RetryingCallerInterceptor
Call this function in case we caught a failure during retries. : The context object that we obtained previously. : The exception that we caught in this particular try- Specified by:
handleFailure
in classRetryingCallerInterceptor
- Throws:
IOException
-
updateFailureInfo
Description copied from class:RetryingCallerInterceptor
Call this function to update at the end of the retry. This is not necessary to happen.- Specified by:
updateFailureInfo
in classRetryingCallerInterceptor
-
createEmptyContext
Description copied from class:RetryingCallerInterceptor
This returns the context object for the current call.- Specified by:
createEmptyContext
in classRetryingCallerInterceptor
- Returns:
- context : the context that needs to be used during this call.
-
toString
- Specified by:
toString
in classRetryingCallerInterceptor
-