@InterfaceAudience.Private abstract class RetryingCallerInterceptorContext extends Object
RpcRetryingCaller
to enable
RetryingCallerInterceptor
to intercept calls.
RetryingCallerInterceptorContext
is the piece of information unique
to a retrying call that transfers information from the call into the
RetryingCallerInterceptor
so that RetryingCallerInterceptor
can take appropriate action according to the specific logicModifier | Constructor and Description |
---|---|
protected |
RetryingCallerInterceptorContext() |
Modifier and Type | Method and Description |
---|---|
abstract void |
clear()
This function clears the internal state of the context object.
|
abstract RetryingCallerInterceptorContext |
prepare(RetryingCallable<?> callable)
This prepares the context object by populating it with information specific
to the implementation of the
RetryingCallerInterceptor along with
which this will be used. |
abstract RetryingCallerInterceptorContext |
prepare(RetryingCallable<?> callable,
int tries)
Telescopic extension that takes which of the many retries we are currently
in.
|
public abstract void clear()
public abstract RetryingCallerInterceptorContext prepare(RetryingCallable<?> callable)
RetryingCallerInterceptor
along with
which this will be used.callable
- : The RetryingCallable
that contains the information about
the call that is being made.RetryingCallerInterceptorContext
object that can be
used for use in the current retrying callpublic abstract RetryingCallerInterceptorContext prepare(RetryingCallable<?> callable, int tries)
callable
- : The RetryingCallable
that contains the information about
the call that is being made.tries
- : The retry number that we are currently in.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.