Function rusteron_client::bindings::aeron_async_add_static_counter
source ยท pub unsafe extern "C" fn aeron_async_add_static_counter(
async_: *mut *mut aeron_async_add_counter_t,
client: *mut aeron_t,
type_id: i32,
key_buffer: *const u8,
key_buffer_length: usize,
label_buffer: *const c_char,
label_buffer_length: usize,
registration_id: i64,
) -> c_int
Expand description
Asynchronously allocates or returns an existing static counter instance using specified type_id
and
registration_id
. Such counter cannot be deleted and its lifecycle is decoupled from the client that created it.
Returns an object to use to determine when the counter is available.
@param async object to use for polling completion. @param client to add the counter to. @param type_id for the counter. @param key_buffer for the counter. @param key_buffer_length for the counter. @param label_buffer for the counter. @param label_buffer_length for the counter. @param registration_id that uniquely identifies the counter. @return 0 for success or -1 for an error.