Interface RollingWindow
-
public interface RollingWindow
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RollingWindowcreate(int size, int failureThreshold)booleanrecordFailure()Records a failed invocationbooleanrecordSuccess()Records a successful invocation
-
-
-
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)
-
-