nodeNet
Interface InputChannel
- All Known Implementing Classes:
- Channel
- public abstract interface InputChannel
This is the interface to recieve objects from a channel. It defines one
method, readObject()
.
Copyright (c) 1998 Massachusetts Institute of Technology
Method Summary |
java.lang.Object |
readObject()
Attempt to get an object in the channel. |
readObject
public java.lang.Object readObject()
throws ChannelEmptyException,
ChannelDisabledException
- Attempt to get an object in the channel.
- Returns:
- the oldest object in the channel
- Throws:
- ChannelEmptyException - if no objects are available in the
channel
- ChannelDisabledException - if the user has disabled the
channel