Package org.jcsp.lang

Class RejectableBufferedOne2OneChannel

  • All Implemented Interfaces:
    RejectableChannel

    public class RejectableBufferedOne2OneChannel
    extends java.lang.Object
    implements RejectableChannel
    Deprecated.
    This channel is superceded by the poison mechanisms, please see PoisonException

    This implements a one-to-one object channel with user-definable buffering, for use by a single writer and single reader. Refer to One2OneChannel for a description of this behaviour.

    Additionally, this channel supports a reject operation. The reader may call the reject method to force any current writer to abort with a ChannelDataRejectedException. Subsequent read and write attempts will immediately cause a ChannelDataRejectedException.

    Note that the reject operation cannot be called concurrently to a read.