Package org.jcsp.lang
Class RejectableChannelInputImpl
java.lang.Object
org.jcsp.lang.ChannelInputImpl
org.jcsp.lang.RejectableChannelInputImpl
- All Implemented Interfaces:
ChannelInput
,Poisonable
,RejectableChannelInput
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jcsp.lang.ChannelInputImpl
endRead, poison, read, startRead
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jcsp.lang.ChannelInput
endRead, read, startRead
Methods inherited from interface org.jcsp.lang.Poisonable
poison
-
Constructor Details
-
RejectableChannelInputImpl
-
-
Method Details
-
reject
public void reject()Description copied from interface:RejectableChannelInput
Reject any data pending instead of reading it. The currently blocked writer will receive aChannelDataRejectedException
.- Specified by:
reject
in interfaceRejectableChannelInput
-