Class PreemptiveFastFailException

All Implemented Interfaces:
Serializable

Deprecated.
since 2.3.0, and will be removed in 4.0.0.
Thrown when the client believes that we are trying to communicate to has been repeatedly unresponsive for a while. On receiving such an exception. The ConnectionManager will skip all retries and fast fail the operation.
See Also:
  • Field Details

  • Constructor Details

    • PreemptiveFastFailException

      public PreemptiveFastFailException(long count, long timeOfFirstFailureMilliSec, long timeOfLatestAttemptMilliSec, ServerName serverName)
      Deprecated.
      Parameters:
      count - num of consecutive failures
      timeOfFirstFailureMilliSec - when first failure happened
      timeOfLatestAttemptMilliSec - when last attempt happened
      serverName - server we failed to connect to
    • PreemptiveFastFailException

      public PreemptiveFastFailException(long count, long timeOfFirstFailureMilliSec, long timeOfLatestAttemptMilliSec, ServerName serverName, boolean guaranteedClientSideOnly)
      Deprecated.
      Parameters:
      count - num of consecutive failures
      timeOfFirstFailureMilliSec - when first failure happened
      timeOfLatestAttemptMilliSec - when last attempt happened
      serverName - server we failed to connect to
      guaranteedClientSideOnly - if true, guarantees that no mutations have been applied on the server
  • Method Details

    • getFirstFailureAt

      public long getFirstFailureAt()
      Deprecated.
      Returns time of the fist failure
    • getLastAttemptAt

      public long getLastAttemptAt()
      Deprecated.
      Returns time of the latest attempt
    • getFailureCount

      public long getFailureCount()
      Deprecated.
      Returns failure count
    • wasOperationAttemptedByServer

      Deprecated.
      Returns true if operation was attempted by server, false otherwise.
    • isGuaranteedClientSideOnly

      public boolean isGuaranteedClientSideOnly()
      Deprecated.
      Returns true if we know no mutation made it to the server, false otherwise.