Interface SpeculativeRetryPolicy

All Known Implementing Classes:
AlwaysSpeculativeRetryPolicy, FixedSpeculativeRetryPolicy, HybridSpeculativeRetryPolicy, NeverSpeculativeRetryPolicy, PercentileSpeculativeRetryPolicy

public interface SpeculativeRetryPolicy
  • Method Details

    • calculateThreshold

      long calculateThreshold(SnapshottingTimer latency, long existingValue)
      Calculate the delay in microseconds after which speculation takes place
      Parameters:
      latency - snapshot of coordinator latencies (in microseconds)
      existingValue - existing speculation threshold (in microseconds)
      Returns:
      speculation delay (in microseconds).
    • kind

    • fromString

      static SpeculativeRetryPolicy fromString(String str)