Packages

p

riff.raft

timer

package timer

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. class DefaultClock extends RaftClock with AutoCloseable
  2. trait RaftClock extends AnyRef

    Represents the functions required to control a member node's election and heartbeat timeouts.

    Represents the functions required to control a member node's election and heartbeat timeouts.

    Implementations should introduce an element of randomisation when resetting the receive heartbeat timeouts, presumably based on some configuration, in order to follow the Raft spec.

    The intention being to reduce the likelihood of multiple nodes becoming candidates at the same time.

  3. class RandomTimer extends AnyRef

    A utility class for use when implementing a RaftClock.

    A utility class for use when implementing a RaftClock. It simply contains a 'next' for producing random timeout durations based around a percentage.

    e.g. if you wanted to timeout +/- 25% of 1 minute, 'next' would produce values between 45 and 75 seconds (60 seconds plus or minus 25%, or 15 seconds)

  4. trait TimerCallback[Result] extends AnyRef

  5. class Timers extends AnyRef

Value Members

  1. object DefaultClock
  2. object RaftClock
  3. object RandomTimer

Ungrouped