@InterfaceAudience.Private class FastFailInterceptorContext extends RetryingCallerInterceptorContext
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.lang.mutable.MutableBoolean |
couldNotCommunicateWithServer |
private boolean |
didTry |
private FailureInfo |
fInfo |
private boolean |
retryDespiteFastFailMode |
private ServerName |
server |
private int |
tries |
Constructor and Description |
---|
FastFailInterceptorContext() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
This function clears the internal state of the context object.
|
boolean |
didTry() |
org.apache.commons.lang.mutable.MutableBoolean |
getCouldNotCommunicateWithServer() |
FailureInfo |
getFailureInfo() |
ServerName |
getServer() |
int |
getTries() |
boolean |
isRetryDespiteFastFailMode() |
FastFailInterceptorContext |
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. |
FastFailInterceptorContext |
prepare(RetryingCallable<?> callable,
int tries)
Telescopic extension that takes which of the many retries we are currently
in.
|
void |
setCouldNotCommunicateWithServer(org.apache.commons.lang.mutable.MutableBoolean couldNotCommunicateWithServer) |
void |
setDidTry(boolean didTry) |
void |
setFailureInfo(FailureInfo fInfo) |
void |
setRetryDespiteFastFailMode(boolean retryDespiteFastFailMode) |
void |
setServer(ServerName server) |
void |
setTries(int tries) |
private org.apache.commons.lang.mutable.MutableBoolean couldNotCommunicateWithServer
private boolean didTry
private FailureInfo fInfo
private boolean retryDespiteFastFailMode
private ServerName server
private int tries
public org.apache.commons.lang.mutable.MutableBoolean getCouldNotCommunicateWithServer()
public FailureInfo getFailureInfo()
public ServerName getServer()
public int getTries()
public boolean didTry()
public boolean isRetryDespiteFastFailMode()
public void setCouldNotCommunicateWithServer(org.apache.commons.lang.mutable.MutableBoolean couldNotCommunicateWithServer)
public void setDidTry(boolean didTry)
public void setFailureInfo(FailureInfo fInfo)
public void setRetryDespiteFastFailMode(boolean retryDespiteFastFailMode)
public void setServer(ServerName server)
public void setTries(int tries)
public void clear()
RetryingCallerInterceptorContext
clear
in class RetryingCallerInterceptorContext
public FastFailInterceptorContext prepare(RetryingCallable<?> callable)
RetryingCallerInterceptorContext
RetryingCallerInterceptor
along with
which this will be used.prepare
in class RetryingCallerInterceptorContext
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 FastFailInterceptorContext prepare(RetryingCallable<?> callable, int tries)
RetryingCallerInterceptorContext
prepare
in class RetryingCallerInterceptorContext
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.