Class AlwaysSpeculativeRetryPolicy

    • Method Detail

      • calculateThreshold

        public long calculateThreshold​(SnapshottingTimer latency,
                                       long existingValue)
        Description copied from interface: SpeculativeRetryPolicy
        Calculate the delay in microseconds after which speculation takes place
        Specified by:
        calculateThreshold in interface SpeculativeRetryPolicy
        Parameters:
        latency - snapshot of coordinator latencies (in microseconds)
        existingValue - existing speculation threshold (in microseconds)
        Returns:
        speculation delay (in microseconds).
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object