@InterfaceAudience.Public public class PreemptiveFastFailException extends ConnectException
Modifier and Type | Field and Description |
---|---|
private long |
failureCount |
private boolean |
guaranteedClientSideOnly |
private static long |
serialVersionUID |
private long |
timeOfFirstFailureMilliSec |
private long |
timeOfLatestAttemptMilliSec |
Constructor and Description |
---|
PreemptiveFastFailException(long count,
long timeOfFirstFailureMilliSec,
long timeOfLatestAttemptMilliSec,
ServerName serverName) |
PreemptiveFastFailException(long count,
long timeOfFirstFailureMilliSec,
long timeOfLatestAttemptMilliSec,
ServerName serverName,
boolean guaranteedClientSideOnly) |
Modifier and Type | Method and Description |
---|---|
long |
getFailureCount() |
long |
getFirstFailureAt() |
long |
getLastAttemptAt() |
boolean |
isGuaranteedClientSideOnly() |
boolean |
wasOperationAttemptedByServer() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
private long failureCount
private long timeOfFirstFailureMilliSec
private long timeOfLatestAttemptMilliSec
private boolean guaranteedClientSideOnly
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–2019 The Apache Software Foundation. All rights reserved.