All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.Demux

java.lang.Object
   |
   +----JavaGroups.Demux

public class Demux
extends Object
implements Transportable
A Demultiplexer allows to receive messages from a number of channels (similar to the Unix SELECT system call). It assigns a separate thread for each channel it has to listen on and adds received messages to a single message queue. Method Receive removes messages from this queue.


Constructor Index

 o Demux()

Method Index

 o Add(Transportable)
 o Receive(long)
 o Remove(Transportable)
 o Send(Message)

Constructors

 o Demux
 public Demux()

Methods

 o Add
 public void Add(Transportable t)
 o Remove
 public void Remove(Transportable t)
 o Send
 public void Send(Message msg) throws NotConnected
 o Receive
 public Message Receive(long timeout) throws NotConnected

All Packages  Class Hierarchy  This Package  Previous  Next  Index