trq_size_by_key()

trq_size_by_key()#

trq_size_by_key() returns the number of messages in the queue that match the specified key.

Prototype

int trq_size_by_key(
    tr_queue   trq,
    const char *key
);

Parameters

Key

Type

Description

trq

tr_queue

The queue instance to search within.

key

const char *

The key used to filter messages in the queue.


Return Value

The number of messages in the queue that match the given key.

Notes

If no messages match the key, trq_size_by_key() returns 0.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples