Client Queue Methods
Use the BrokerClient.getQueueLength method to determine the number of events currently waiting in a Broker client's event queue.
Use the BrokerClient.clearQueue method to empty the event queue associated with a Broker client.
Important:
Use the BrokerClient.clearQueue 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, invoking this method can have far-reaching effects.