TibrvDispatchable.poll()

Method

Declaration

boolean poll()
  throws TibrvException, java.lang.InterruptedException

Purpose

Dispatch an event, if possible.

Remarks

If an event is ready to dispatch, then this call dispatches it, and then returns. If no events are waiting, then this call returns immediately.

When the call dispatches an event, it returns true. When the call does not dispatch an event, it returns false.

This call is equivalent to timedDispatch(0).

Both TibrvQueue and TibrvQueueGroup implement this method.

See Also

Interrupting Event Dispatch Threads

TibrvDispatchable

TibrvQueue.poll()

TibrvQueueGroup.poll()