Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Using Broker Clients | Obtaining Client State and Status | Client Queue Methods
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.
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.