au.com.zip.cs
Class Channel

java.lang.Object
  extended by au.com.zip.cs.Channel

public class Channel
extends Object

A zero storage communication channel.

Author:
Cameron Simpson <cs@zip.com.au> 24may2001

Constructor Summary
Channel()
           
 
Method Summary
 Object get()
          Fetch an Object from the Channel.
 void put(Object p)
          Hand an Object to someone get()ting on this Channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Channel

public Channel()
Method Detail

get

public Object get()
           throws InterruptedException
Fetch an Object from the Channel.

Returns:
the Object retrieved
Throws:
InterruptedException

put

public void put(Object p)
         throws InterruptedException
Hand an Object to someone get()ting on this Channel.

Parameters:
p - the Object to put
Throws:
InterruptedException