Interface ContentPolicy.InstabilityChecker
- All Known Implementing Classes:
ContentPolicy.PerNodeCountingInstabilityChecker
- Enclosing class:
- ContentPolicy
public static interface ContentPolicy.InstabilityChecker
Tracks "instability" across nodes based on number of failures received versus some
implementation-specific limit.
Implementations must be thread-safe.
TODO should ideally be protected, but there's a package mismatch between policy classes and its tests
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFailure
(Integer calculatedDistributor) boolean
tooManyFailures
(int nodeIndex)
-
Method Details
-
tooManyFailures
boolean tooManyFailures(int nodeIndex) -
addFailure
-