Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
class FailureDetector d where Source #
observe :: d -> DiffTime -> d Source #
Add a liveness event to our set of evidence about the target. - Specified as the amount of time that passed since the last evidence before it.
suspected :: d -> DiffTime -> Bool Source #
If the failure detector suspects the target is faulty, - given that the specified amount of time has passed since the last sample.