Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Subscribing to and Receiving Events | Getting Events using the poll Method | The BrokerClientPoll Object
 
The BrokerClientPoll Object
A BrokerClientPoll object maintains information that the polling process takes as input and returns as output. To use the polling model, an application must create a BrokerClientPoll object for each Broker client whose queue the application will poll.
When an application instantiates a BrokerClientPoll object, it must provide two parameters to the constructor, 1) the BrokerClient whose queue the application wants to poll and 2) the GET_EVENTS flag, which tells the poll method to poll for events.
Note:
Despite its name, the GET_EVENTS flag does not cause the poll method to actually retrieve events from a client's queue. Your application code must do that. The poll method merely indicates that events are available and that the getEvents method will not block if executed.