@Deprecated @InterfaceAudience.Public public class PreemptiveFastFailException extends ConnectException
Constructor and Description |
---|
PreemptiveFastFailException(long count,
long timeOfFirstFailureMilliSec,
long timeOfLatestAttemptMilliSec,
ServerName serverName)
Deprecated.
|
PreemptiveFastFailException(long count,
long timeOfFirstFailureMilliSec,
long timeOfLatestAttemptMilliSec,
ServerName serverName,
boolean guaranteedClientSideOnly)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
long |
getFailureCount()
Deprecated.
Returns failure count
|
long |
getFirstFailureAt()
Deprecated.
Returns time of the fist failure
|
long |
getLastAttemptAt()
Deprecated.
Returns time of the latest attempt
|
boolean |
isGuaranteedClientSideOnly()
Deprecated.
Returns true if we know no mutation made it to the server, false otherwise.
|
boolean |
wasOperationAttemptedByServer()
Deprecated.
Returns true if operation was attempted by server, false otherwise.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PreemptiveFastFailException(long count, long timeOfFirstFailureMilliSec, long timeOfLatestAttemptMilliSec, ServerName serverName)
count
- num of consecutive failurestimeOfFirstFailureMilliSec
- when first failure happenedtimeOfLatestAttemptMilliSec
- when last attempt happenedserverName
- server we failed to connect topublic PreemptiveFastFailException(long count, long timeOfFirstFailureMilliSec, long timeOfLatestAttemptMilliSec, ServerName serverName, boolean guaranteedClientSideOnly)
count
- num of consecutive failurestimeOfFirstFailureMilliSec
- when first failure happenedtimeOfLatestAttemptMilliSec
- when last attempt happenedserverName
- server we failed to connect toguaranteedClientSideOnly
- if true, guarantees that no mutations have been applied on
the serverpublic long getFirstFailureAt()
public long getLastAttemptAt()
public long getFailureCount()
public boolean wasOperationAttemptedByServer()
public boolean isGuaranteedClientSideOnly()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.