Package org.jcsp.lang

Class RejectableChannelInputImpl

java.lang.Object
org.jcsp.lang.ChannelInputImpl
org.jcsp.lang.RejectableChannelInputImpl
All Implemented Interfaces:
ChannelInput, Poisonable, RejectableChannelInput

class RejectableChannelInputImpl extends ChannelInputImpl implements RejectableChannelInput
  • Constructor Details

    • RejectableChannelInputImpl

      public RejectableChannelInputImpl(ChannelInternals _channel, int _immunity)
  • 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 a ChannelDataRejectedException.
      Specified by:
      reject in interface RejectableChannelInput