seqeron 0.18.0
Loading...
Searching...
No Matches
Org.Limitless.Seqeron.Sequencer.Client.IIngressTracker Interface Reference

What IngressPublisher tells, and asks, about each frame it places, so a producer confirms its ingress on the queue without handling a frame itself; and what the sender tells, and asks, about a leader change. A send spinning through an election would land in the new term ahead of older frames that election lost, so the sender gives it up while the hold is on. PendingSends is the implementation; IngressTracker.java and sequencer/client/IngressTracker.hpp are its twins. More...

Inheritance diagram for Org.Limitless.Seqeron.Sequencer.Client.IIngressTracker:

Public Member Functions

void Track (IDirectBuffer frame, int length, long clusterSessionId, long leadershipTermId)
 A frame just placed, with the sender's ClusterSessionId and LeadershipTermId.
 
void OnNewLeader (long leadershipTermId)
 Egress named a new leader, for this term.
 

Properties

bool IsFull [get]
 Whether another frame can be tracked; one that cannot must not be sent.
 
bool IsHolding [get]
 Whether frames from an earlier term may still need resending ahead of any new one.
 

Detailed Description

What IngressPublisher tells, and asks, about each frame it places, so a producer confirms its ingress on the queue without handling a frame itself; and what the sender tells, and asks, about a leader change. A send spinning through an election would land in the new term ahead of older frames that election lost, so the sender gives it up while the hold is on. PendingSends is the implementation; IngressTracker.java and sequencer/client/IngressTracker.hpp are its twins.

Member Function Documentation

◆ OnNewLeader()

void Org.Limitless.Seqeron.Sequencer.Client.IIngressTracker.OnNewLeader ( long  leadershipTermId)

Egress named a new leader, for this term.

Parameters
leadershipTermIdthe new leader's term

Implemented in Org.Limitless.Seqeron.Sequencer.Client.PendingSends.

◆ Track()

void Org.Limitless.Seqeron.Sequencer.Client.IIngressTracker.Track ( IDirectBuffer  frame,
int  length,
long  clusterSessionId,
long  leadershipTermId 
)

A frame just placed, with the sender's ClusterSessionId and LeadershipTermId.

Parameters
framethe frame, from offset 0
lengthits length in bytes
clusterSessionIdthe session it went out on
leadershipTermIdthe term it was stamped with

Implemented in Org.Limitless.Seqeron.Sequencer.Client.PendingSends.

Property Documentation

◆ IsFull

bool Org.Limitless.Seqeron.Sequencer.Client.IIngressTracker.IsFull
get

Whether another frame can be tracked; one that cannot must not be sent.

Implemented in Org.Limitless.Seqeron.Sequencer.Client.PendingSends.

◆ IsHolding

bool Org.Limitless.Seqeron.Sequencer.Client.IIngressTracker.IsHolding
get

Whether frames from an earlier term may still need resending ahead of any new one.

Implemented in Org.Limitless.Seqeron.Sequencer.Client.PendingSends.


The documentation for this interface was generated from the following file: