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

What IngressPublisher needs of a cluster session: place this frame, and say which session it belongs to. The seam the suite drives without an Aeron runtime; ClusterStreamSender implements it. More...

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

Public Member Functions

bool Send (IDirectBuffer frame, int length)
 Offers one pre-encoded frame to cluster ingress.
 

Properties

long ClusterSessionId [get]
 This process's cluster session id, or -1 with no session. Stamped into a frame's advisory field.
 
long LeadershipTermId [get]
 The leadership term ingress is stamped with, or -1 with no session. Read straight after a Send that returned true, it is the term that frame carried: the cluster drops a frame stamped with any term but its own.
 

Detailed Description

What IngressPublisher needs of a cluster session: place this frame, and say which session it belongs to. The seam the suite drives without an Aeron runtime; ClusterStreamSender implements it.

Member Function Documentation

◆ Send()

bool Org.Limitless.Seqeron.Sequencer.Client.IIngressSender.Send ( IDirectBuffer  frame,
int  length 
)

Offers one pre-encoded frame to cluster ingress.

Parameters
framethe frame, from offset 0
lengthits length in bytes
Returns
whether it was placed; false with a session still open means a new leader arrived while an IIngressTracker held, and the frame goes again once it releases

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

Property Documentation

◆ ClusterSessionId

long Org.Limitless.Seqeron.Sequencer.Client.IIngressSender.ClusterSessionId
get

This process's cluster session id, or -1 with no session. Stamped into a frame's advisory field.

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

◆ LeadershipTermId

long Org.Limitless.Seqeron.Sequencer.Client.IIngressSender.LeadershipTermId
get

The leadership term ingress is stamped with, or -1 with no session. Read straight after a Send that returned true, it is the term that frame carried: the cluster drops a frame stamped with any term but its own.

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


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