seqeron 0.18.0
Loading...
Searching...
No Matches
org::limitless::seqeron::protocol::LifecycleEvent Struct Reference

A connection at a producer opening (ConnectionOpened) or closing (ConnectionClosed). More...

#include <org/limitless/seqeron/protocol/SequencedFrame.hpp>

Public Attributes

std::int64_t clusterSeqNo
 
std::int32_t sourceId
 publishing producer process (header.sourceId)
 
std::int32_t connectionId
 connection at that producer (header.connectionId)
 
std::int64_t sourceSessionId
 Aeron Cluster session the event was submitted on.
 
std::int64_t clusterTimestampNs
 cluster consensus time (epoch ns) when committed
 
std::int64_t receiveTimeNs
 wall-clock ns at receipt by this client
 
const char * payload
 the event's message, for decodeSystem; valid only during the callback
 
std::uint64_t payloadLength
 total byte count
 

Detailed Description

A connection at a producer opening (ConnectionOpened) or closing (ConnectionClosed).

Published by the producer that owns it — these are external events it observes, forwarded on ingress like any other message, not something the sequencer synthesizes.

sourceId/connectionId name the connection the event refers to, and both are needed: connectionId is unique only within the publishing producer process, so a consumer serving one producer must match sourceId before acting on a connectionId.

Member Data Documentation

◆ clusterSeqNo

std::int64_t org::limitless::seqeron::protocol::LifecycleEvent::clusterSeqNo

◆ clusterTimestampNs

std::int64_t org::limitless::seqeron::protocol::LifecycleEvent::clusterTimestampNs

cluster consensus time (epoch ns) when committed

◆ connectionId

std::int32_t org::limitless::seqeron::protocol::LifecycleEvent::connectionId

connection at that producer (header.connectionId)

◆ payload

const char* org::limitless::seqeron::protocol::LifecycleEvent::payload

the event's message, for decodeSystem; valid only during the callback

◆ payloadLength

std::uint64_t org::limitless::seqeron::protocol::LifecycleEvent::payloadLength

total byte count

◆ receiveTimeNs

std::int64_t org::limitless::seqeron::protocol::LifecycleEvent::receiveTimeNs

wall-clock ns at receipt by this client

◆ sourceId

std::int32_t org::limitless::seqeron::protocol::LifecycleEvent::sourceId

publishing producer process (header.sourceId)

◆ sourceSessionId

std::int64_t org::limitless::seqeron::protocol::LifecycleEvent::sourceSessionId

Aeron Cluster session the event was submitted on.


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