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

Channel Class Reference

Inheritance diagram for Channel:

IChannel List of all members.

Public Member Functions

 this (char[] name)
char[] getName ()
void write (IWriter writer)
void read (IReader reader)

Public Attributes

char[] name
Buffer buffer
ProtocolReader reader
ProtocolWriter writer

Detailed Description

A channel represents something akin to a publish/subscribe topic, or a radio station. These are used to segregate cluster operations into a set of groups, where each group is represented by a channel. Channel names are whatever you want then to be: use of dot notation has proved useful in the past. See Client.createChannel

Definition at line 676 of file Cluster.d.


Member Function Documentation

this char[]  name  )  [inline]
 

Construct a channel with the specified name. We cache a number of session-related constructs here also, in order to eliminate runtime overhead

Definition at line 691 of file Cluster.d.

References assert().

char [] getName  )  [inline]
 

Return the name of this channel. This is the name provided when the channel was constructed.

Reimplemented from IChannel.

Definition at line 713 of file Cluster.d.

Referenced by Cluster::getCache(), Cluster::getQueue(), Cluster::loadCache(), Cluster::putCache(), and Cluster::putQueue().

void write IWriter  writer  )  [inline]
 

Output this channel via the provided IWriter

Reimplemented from IWritable.

Definition at line 724 of file Cluster.d.

void read IReader  reader  )  [inline]
 

Input this channel via the provided IReader

Reimplemented from IReadable.

Definition at line 735 of file Cluster.d.


Member Data Documentation

char [] name
 

Definition at line 678 of file Cluster.d.

Buffer buffer
 

Definition at line 679 of file Cluster.d.

ProtocolReader reader
 

Definition at line 680 of file Cluster.d.

Referenced by Cluster::getCache(), Cluster::getQueue(), Cluster::loadCache(), Cluster::putCache(), and Cluster::putQueue().

ProtocolWriter writer
 

Definition at line 681 of file Cluster.d.

Referenced by Cluster::getCache(), Cluster::getQueue(), Cluster::loadCache(), Cluster::putCache(), and Cluster::putQueue().


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 00:31:06 2005 for Mango by doxygen 1.3.6