pub type aeron_publication_constants_t = aeron_publication_constants_stct;Expand description
Configuration for a publication that does not change during it’s lifetime.
Aliased Type§
#[repr(C)]pub struct aeron_publication_constants_t {Show 13 fields
pub channel: *const i8,
pub original_registration_id: i64,
pub registration_id: i64,
pub max_possible_position: i64,
pub position_bits_to_shift: usize,
pub term_buffer_length: usize,
pub max_message_length: usize,
pub max_payload_length: usize,
pub stream_id: i32,
pub session_id: i32,
pub initial_term_id: i32,
pub publication_limit_counter_id: i32,
pub channel_status_indicator_id: i32,
}Fields§
§channel: *const i8Media address for delivery to the channel.
This returns a pointer only valid for the lifetime of the publication.
original_registration_id: i64The registration used to register this Publication with the media driver by the first publisher.
registration_id: i64Get the registration id used to register this Publication with the media driver.
If this value is different from the original_registration_id then a previous active registration exists.
max_possible_position: i64The maximum possible position this stream can reach due to its term buffer length.
Maximum possible position is term-length times 2^31 in bytes.
position_bits_to_shift: usizeNumber of bits to right shift a position to get a term count for how far the stream has progressed.
term_buffer_length: usizeGet the length in bytes for each term partition in the log buffer.
max_message_length: usizeMaximum message length supported in bytes. Messages may be made of multiple fragments if greater than MTU length.
max_payload_length: usizeMaximum length of a message payload that fits within a message fragment.
This is the MTU length minus the message fragment header length.
stream_id: i32Stream id of the publication.
session_id: i32Session id of the publication.
initial_term_id: i32The initial term id assigned when this publication was created. This can be used to determine how many terms have passed since creation.
publication_limit_counter_id: i32Counter id for the publication limit.
channel_status_indicator_id: i32Counter id for the channel status indicator