TibrvQueueGroup

Class

Declaration

class com.tibco.tibrv.TibrvQueueGroup
  extends java.lang.Object
  implements TibrvDispatchable

Purpose

Prioritized dispatch of several queues with one call.

Remarks

Queue groups add flexibility and fine-grained control to the event queue dispatch mechanism. Programs can create groups of queues and dispatch them according to their queue priorities.

Programs must explicitly destroy instances of this class. Rendezvous software keeps internal references to these objects, so the Java garbage collector does not delete them automatically.

Method

Description

Life Cycle

TibrvQueueGroup()

Create an event queue group.

TibrvQueueGroup.destroy()

Destroy an event queue group.

TibrvQueueGroup.isValid()

Test validity of a queue group.

Dispatch

TibrvQueueGroup.dispatch()

Dispatch an event from a queue group; if no event is ready, block.

TibrvQueueGroup.poll()

Dispatch an event, but if no event is ready to dispatch, return immediately (without blocking).

TibrvQueueGroup.timedDispatch()

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

Queues

TibrvQueueGroup.add()

Add an event queue to a queue group.

TibrvQueueGroup.contains()

Test whether a queue is in a queue group.

TibrvQueueGroup.elements()

Extract an enumeration of the queues in a queue group.

TibrvQueueGroup.getCount()

Extract the number of queues in a queue group.

TibrvQueueGroup.remove()

Remove an event queue from a queue group.

Inherited Methods

java.lang.Object.equals

java.lang.Object.getClass

java.lang.Object.hashCode

java.lang.Object.notify

java.lang.Object.notifyAll

java.lang.Object.toString (override)

java.lang.Object.wait