|
seqeron 0.18.0
|
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...
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. | |
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.
| void Org.Limitless.Seqeron.Sequencer.Client.IIngressTracker.OnNewLeader | ( | long | leadershipTermId | ) |
Egress named a new leader, for this term.
| leadershipTermId | the new leader's term |
Implemented in Org.Limitless.Seqeron.Sequencer.Client.PendingSends.
| 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.
| frame | the frame, from offset 0 |
| length | its length in bytes |
| clusterSessionId | the session it went out on |
| leadershipTermId | the term it was stamped with |
Implemented in Org.Limitless.Seqeron.Sequencer.Client.PendingSends.
|
get |
Whether another frame can be tracked; one that cannot must not be sent.
Implemented in Org.Limitless.Seqeron.Sequencer.Client.PendingSends.
|
get |
Whether frames from an earlier term may still need resending ahead of any new one.
Implemented in Org.Limitless.Seqeron.Sequencer.Client.PendingSends.