Package org.jcsp.lang

Class RejectableAltingChannelInput

java.lang.Object
org.jcsp.lang.Guard
org.jcsp.lang.AltingChannelInput
org.jcsp.lang.RejectableAltingChannelInput
All Implemented Interfaces:
ChannelInput, Poisonable, RejectableChannelInput
Direct Known Subclasses:
RejectableAltingChannelInputImpl

public abstract class RejectableAltingChannelInput extends AltingChannelInput implements RejectableChannelInput
Deprecated.
This channel is superceded by the poison mechanisms, please see PoisonException
Defines an interface for an input channel end that gives the reader the ability to reject instead of accepting pending data.
  • Constructor Details

    • RejectableAltingChannelInput

      public RejectableAltingChannelInput()
      Deprecated.
  • Method Details

    • reject

      public abstract void reject()
      Deprecated.
      Reject any data pending instead of reading it. The currently blocked writer will receive a ChannelDataRejectedException.
      Specified by:
      reject in interface RejectableChannelInput