Interface RollingWindow


public interface RollingWindow
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int size, int failureThreshold)
     
    boolean
    Records a failed invocation
    boolean
    Records a successful invocation
  • Method Details

    • 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)