failure-detector-0: Failure Detectors implimented in Haskell.

Safe HaskellSafe



class FailureDetector d where Source #

Minimal complete definition

observe, suspected


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.