Clearing a Broker Client's Queue
The
BrokerAdminClient.clearClientQueueById method can be used to clear the event queue of a
Broker client with a specific client identifier. See
Obtaining Broker Client Identifiers for information on discovering client identifiers at run time.
Important:
Use the BrokerAdminClient.clearClientQueueById method with care because it will delete events which have not yet been processed by the Broker client. If multiple clients are sharing the same client state, calling this method can have far-reaching effects.
You can use the BrokerAdminClient.getClientStatsById method to obtain information about a Broker client's queue, such as the current number of bytes and the number of events in the queue.
Tip:
To clear the event queues of all Broker clients on a Broker Server, use BrokerServerClient.pruneServerLog method.