Interface RollingWindow


  • public interface RollingWindow
    • Method Detail

      • recordSuccess

        boolean recordSuccess()
        Records a successful invocation
        Returns:
        whether the failure threshold has been reached
      • recordFailure

        boolean recordFailure()
        Records a failed invocation
        Returns:
        whether the failure threshold has been reached
      • create

        static RollingWindow create​(int size,
                                    int failureThreshold)