Package org.jcsp.lang
Interface RejectableChannelOutput
-
- All Superinterfaces:
ChannelOutput
,Poisonable
- All Known Implementing Classes:
RejectableChannelOutputImpl
public interface RejectableChannelOutput extends ChannelOutput
Deprecated.This channel is superceded by the poison mechanisms, please seePoisonException
. It remains only because it is used by some of the networking features.Defines an interface for a channel output end which may reject data if the reader is not prepared to receive it and callsreject
instead ofread
on the input channel end.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
write(java.lang.Object o)
Deprecated.Writes data over the channel.-
Methods inherited from interface org.jcsp.lang.Poisonable
poison
-
-
-
-
Method Detail
-
write
void write(java.lang.Object o) throws ChannelDataRejectedException
Deprecated.Writes data over the channel.- Specified by:
write
in interfaceChannelOutput
- Parameters:
o
- an object to write over the channel.- Throws:
ChannelDataRejectedException
- if the reader rejects the data instead of reading it from the channel.
-
-