Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

NetworkTask Class Reference

Inheritance diagram for NetworkTask:

NetworkMessage List of all members.

Public Member Functions

 this (ICluster cluster, char[] channel, IEventListener listener=null)
void put (ITask task)

Private Member Functions

 this (ICluster cluster, char[] channel)
void cancel ()
void put (IMessage message)
void put (IPayload payload)

Static Private Member Functions

static this ()

Member Function Documentation

this ICluster  cluster,
char[]  channel,
IEventListener  listener = null
[inline]
 

Construct a NetworkTask gateway on the provided QOS cluster for the specified channel. Each subsequent queue operation will take place over the given channel.

You can listen for cluster replies by providing an optional IEventListener. Outgoing tasks will be tagged appropriately such that a consumer can respond using IEvent.reply().

Reimplemented from NetworkMessage.

Definition at line 190 of file NetworkQueue.d.

void put ITask  task  )  [inline]
 

Add an ITask entry to the corresponding queue. This will throw a ClusterFullException if there is no space left in the clustered queue.

Definition at line 203 of file NetworkQueue.d.

this ICluster  cluster,
char[]  channel
[inline, inherited]
 

Construct a NetworkQueue gateway on the provided QOS cluster for the specified channel. Each subsequent queue operation will take place over the given channel.

Reimplemented from Client.

Definition at line 62 of file NetworkQueue.d.

static this  )  [inline, static, inherited]
 

Definition at line 66 of file Client.d.

References Client::EmptyMessage.

void cancel  )  [inline, inherited]
 

Cancel the listener. No more events will be dispatched to the reply IEventListener.

Reimplemented from IConsumer.

Definition at line 148 of file NetworkQueue.d.

References IConsumer::cancel(), and NetworkMessage::consumer.

void put IMessage  message  )  [inline, inherited]
 

Add an IMessage entry to the corresponding queue. This will throw a ClusterFullException if there is no space left in the clustered queue.

Definition at line 162 of file NetworkQueue.d.

References IChannel::getName(), NetworkMessage::reply, and IMessage::setReply().

Referenced by testClusterMessage().

void put IPayload  payload  )  [inline, inherited]
 

Add an IPayload entry to the corresponding queue. This will throw a ClusterFullException if there is no space left in the clustered queue.

Definition at line 87 of file NetworkQueue.d.

References ICluster::putQueue().

Referenced by testClusterQueue().


The documentation for this class was generated from the following file:
Generated on Fri May 27 18:12:02 2005 for Mango by  doxygen 1.4.0