Struct nakadi_types::partition::Partition [−][src]
pub struct Partition { pub partition: PartitionId, pub oldest_available_offset: CursorOffset, pub newest_available_offset: CursorOffset, pub unconsumed_events: Option<u64>, }
Expand description
Partition information. Can be helpful when trying to start a stream using an unmanaged API.
This information is not related to the state of the consumer clients.
See also Nakadi Manual
Fields
partition: PartitionId
oldest_available_offset: CursorOffset
An offset of the oldest available Event in that partition. This value will be changing upon removal of Events from the partition by the background archiving/cleanup mechanism.
newest_available_offset: CursorOffset
An offset of the newest available Event in that partition. This value will be changing upon reception of new events for this partition by Nakadi.
This value can be used to construct a cursor when opening streams (see GET /event-type/{name}/events for details).
Might assume the special name BEGIN, meaning a pointer to the offset of the oldest available event in the partition.
unconsumed_events: Option<u64>
Approximate number of events unconsumed by the client. This is also known as consumer lag and is used for monitoring purposes by consumers interested in keeping an eye on the number of unconsumed events.
If the event type uses ‘compact’ cleanup policy - then the actual number of unconsumed events in this partition can be lower than the one reported in this field.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Partition
impl UnwindSafe for Partition
Blanket Implementations
Mutably borrows from an owned value. Read more