Interface RollingWindow
public interface RollingWindow
-
Method Summary
Modifier and TypeMethodDescriptionstatic RollingWindowcreate(int size, int failureThreshold) booleanRecords a failed invocationbooleanRecords 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
-