Click or drag to resize
Akka.NETDeadlineFailureDetector Constructor (TimeSpan, TimeSpan, Clock)
Initializes a new instance of the DeadlineFailureDetector class.

Namespace:  Akka.Remote
Assembly:  Akka.Remote (in Akka.Remote.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public DeadlineFailureDetector(
	TimeSpan acceptableHeartbeatPause,
	TimeSpan heartbeatInterval,
	Clock clock = null
)

Parameters

acceptableHeartbeatPause
Type: SystemTimeSpan
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.
heartbeatInterval
Type: SystemTimeSpan
The amount of time between heartbeats
clock (Optional)
Type: Akka.RemoteClock
The clock, returning current time in milliseconds, but can be faked for testing purposes. It is only used for measuring intervals (duration).
Exceptions
ExceptionCondition
ArgumentOutOfRangeException This exception is thrown for the following reasons:
  • The specified acceptableHeartbeatPause is less than zero.
  • The specified heartbeatInterval is less than zero
See Also