Class ErrorsPerIntervalBlacklistingStrategy

java.lang.Object
org.distributeme.core.routing.blacklisting.ErrorsPerIntervalBlacklistingStrategy
All Implemented Interfaces:
BlacklistingStrategy

public class ErrorsPerIntervalBlacklistingStrategy extends Object implements BlacklistingStrategy
A service instance is blacklisted after x successive intervals of length y, in which z failures occur. x, y and z are configurable via configureme. x: requiredNumberOfIntervalsWithErrors y: intervalDurationInSeconds z: errorsPerIntervalThreshold If no valid configuration is given, then isBlacklisted() always returns false.
Author:
rboehling