[][src]Function pulsar_sys::pulsar_producer_get_last_sequence_id

pub unsafe extern "C" fn pulsar_producer_get_last_sequence_id(
    producer: *mut pulsar_producer_t
) -> i64

Get the last sequence id that was published by this producer.

This represent either the automatically assigned or custom sequence id (set on the MessageBuilder) that was published and acknowledged by the broker.

After recreating a producer with the same producer name, this will return the last message that was published in the previous producer session, or -1 if there no message was ever published.

@return the last sequence id published by this producer