TibrvDispatchable

Interface

Declaration

interface com.tibco.tibrv.TibrvDispatchable

Purpose

Common interface for queues and queue groups.

Remarks

Both TibrvQueue and TibrvQueueGroup implement this interface, so programs can call the common methods on objects of either class. For example, consider a dispatcher routine that receives an object of type TibrvDispatchable; it can call the dispatch() method, without needing to determine whether the object is queue or a queue group.

Method

Description

TibrvDispatchable.dispatch()

Dispatch an event; if no event is ready, block.

TibrvDispatchable.poll()

Dispatch an event, if possible.

TibrvDispatchable.timedDispatch()

Dispatch an event, but if no event is ready to dispatch, limit the time that this call blocks while waiting for an event.

See Also

Interrupting Event Dispatch Threads

TibrvQueue

TibrvQueueGroup