IDispatchable

Interface

Visual Basic

Public Interface IDispatchable

C#

public interface IDispatchable

Purpose

Common interface for queues and queue groups.

Remarks

Both Queue and QueueGroup 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 IDispatchable; it can call the dispatch() method, without needing to determine whether the object is queue or a queue group.

Method

Description

Page

IDispatchable.dispatch

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

IDispatchable.dispatch

IDispatchable.Poll

Dispatch an event, if possible.

IDispatchable.Poll

IDispatchable.TimedDispatch

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

IDispatchable.TimedDispatch

See Also

Queue

QueueGroup