seqeron 0.18.0
Loading...
Searching...
No Matches
Org.Limitless.Seqeron.Replayer.Client Namespace Reference

Classes

interface  IReplayerRecoveryActions
 Everything ReplayerRecovery cannot do itself: the sends, the replay subscription, and the gauge. ReplayerStreamReceiver implements it against Aeron; the unit suite substitutes a recorder.
 
interface  ISnapshotRestoreHandler
 Takes a source's snapshot as a restore reads it from this instance's own file, before any frame after its cut is dispatched (doc/snapshot.md §7). Each restore, a restart's included, begins with OnSnapshotHeader. More...
 
class  ReplayerRecovery
 The state machine of ReplayerStreamReceiver. A cold start walks the node's active recording of its queue from its start, which must be the queue's: a recording that starts at a cut or was purged stops the walk at its first frame. Catch-up is detected by position (Replaying.catchUpPosition); a gap by groupSeqNo (spec F-6), repaired by resuming the active recording at the last dispatched frame. De-duplication and a resume's anchor go by clusterSeqNo, which increases along a queue but jumps (spec P-3).
 
class  ReplayerStreamReceiver
 App-replica side of the per-node ReplayerService: reads the co-located queue live and asks the Replayer for history and gaps. The Aeron adapter only: every decision lives in ReplayerRecovery. ReplayerStreamReceiver.java and replayer/client/ReplayerStreamReceiver.hpp are its twins. More...
 
class  SequencedEvent
 One frame delivered in order off the sequenced stream, live or replayed; SequencedEvent.java and the C++ SequencedEvent are its twins. The envelope is stripped: split on SequencedFrameDecoder.IsSystem, then dispatch on (PayloadId, TemplateId) or SequencedFrameDecoder.SystemEventType. Every system frame but LeadershipChanged, which has its own callback, arrives here. More...
 
class  SnapshotStore
 This instance's own snapshots, in a directory no other instance writes (doc/snapshot.md §4.1). A round is written as <round>.tmp: the records, each a little-endian uint16 length and its bytes, record 0 the façade's header, then a trailer: More...
 

Functions

delegate void SequencedHandler (SequencedEvent sequencedEvent)
 Receives every in-order frame that is not intercepted as a leadership change.
 
delegate void LeadershipHandler (int newLeaderMemberId, long leadershipTermId, long clusterSeqNo)
 Receives each LeadershipChanged as it is dispatched, in log order: once per term, whether or not the leader changed with it.
 
delegate void CaughtUpHandler ()
 Fires on every transition to caught-up: when the receiver reaches the live queue, and again after each gap it heals.
 

Function Documentation

◆ CaughtUpHandler()

delegate void Org.Limitless.Seqeron.Replayer.Client.CaughtUpHandler ( )

Fires on every transition to caught-up: when the receiver reaches the live queue, and again after each gap it heals.

◆ LeadershipHandler()

delegate void Org.Limitless.Seqeron.Replayer.Client.LeadershipHandler ( int  newLeaderMemberId,
long  leadershipTermId,
long  clusterSeqNo 
)

Receives each LeadershipChanged as it is dispatched, in log order: once per term, whether or not the leader changed with it.

Parameters
newLeaderMemberIdthe member leading from this frame onward
leadershipTermIdthe term that begins here
clusterSeqNothis frame's own sequence number, which counts toward continuity

◆ SequencedHandler()

delegate void Org.Limitless.Seqeron.Replayer.Client.SequencedHandler ( SequencedEvent  sequencedEvent)

Receives every in-order frame that is not intercepted as a leadership change.

Parameters
sequencedEventa flyweight, valid only for this call; copy anything that must outlive it