C# Class Akka.Remote.DeadlineFailureDetector

Implementation of failure detector using an absolute timeout of missing heartbeats to trigger unavailability
Inheritance: Akka.Remote.FailureDetector
ファイルを表示 Open project: rogeralsing/akka.net Class Usage Examples

Public Methods

Method Description
DeadlineFailureDetector ( Config config, EventStream ev ) : System

Constructor that reads parameters from an Akka Config section. Expects property 'acceptable-heartbeat-pause'.

DeadlineFailureDetector ( System.TimeSpan acceptableHeartbeatPause, System.Clock clock = null ) : System

Procedural constructor for DeadlineFailureDetector

HeartBeat ( ) : void

Protected Methods

Method Description
DeadlineFailureDetector ( System.Clock clock ) : System

Private Methods

Method Description
IsAvailableTicks ( long timestamp ) : bool

Method Details

DeadlineFailureDetector() protected method

protected DeadlineFailureDetector ( System.Clock clock ) : System
clock System.Clock
return System

DeadlineFailureDetector() public method

Constructor that reads parameters from an Akka Config section. Expects property 'acceptable-heartbeat-pause'.
public DeadlineFailureDetector ( Config config, EventStream ev ) : System
config Akka.Configuration.Config
ev Akka.Event.EventStream
return System

DeadlineFailureDetector() public method

Procedural constructor for DeadlineFailureDetector
public DeadlineFailureDetector ( System.TimeSpan acceptableHeartbeatPause, System.Clock clock = null ) : System
acceptableHeartbeatPause System.TimeSpan Duration corresponding to number of potentially lost/delayed /// heartbeats that will be accepted before considering it to be an anomaly. /// This margin is important to be able to survive sudden, occasional, pauses in heartbeat /// arrivals, due to for example garbage collect or network drop.
clock System.Clock The clock, returning current time in milliseconds, but can be faked for testing /// purposes. It is only used for measuring intervals (duration).
return System

HeartBeat() public method

public HeartBeat ( ) : void
return void