Package org.jcsp.lang
Class RejectableBufferedOne2OneChannel
- java.lang.Object
-
- org.jcsp.lang.RejectableBufferedOne2OneChannel
-
- All Implemented Interfaces:
RejectableChannel
public class RejectableBufferedOne2OneChannel extends java.lang.Object implements RejectableChannel
Deprecated.This channel is superceded by the poison mechanisms, please seePoisonExceptionThis implements a one-to-one object channel with user-definable buffering, for use by a single writer and single reader. Refer to
One2OneChannelfor a description of this behaviour.Additionally, this channel supports a
rejectoperation. The reader may call the reject method to force any current writer to abort with aChannelDataRejectedException. Subsequent read and write attempts will immediately cause aChannelDataRejectedException.Note that the
rejectoperation cannot be called concurrently to a read.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BufferedOne2OneChannelinnerChannelDeprecated.
-
Constructor Summary
Constructors Constructor Description RejectableBufferedOne2OneChannel(ChannelDataStore buffer)Deprecated.Constructs a new channel.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RejectableChannelInputin()Deprecated.RejectableAltingChannelInputinAlt()Deprecated.RejectableChannelOutputout()Deprecated.
-
-
-
Field Detail
-
innerChannel
BufferedOne2OneChannel innerChannel
Deprecated.
-
-
Constructor Detail
-
RejectableBufferedOne2OneChannel
public RejectableBufferedOne2OneChannel(ChannelDataStore buffer)
Deprecated.Constructs a new channel.- Parameters:
buffer- the buffer implementation to use.
-
-
Method Detail
-
inAlt
public RejectableAltingChannelInput inAlt()
Deprecated.
-
in
public RejectableChannelInput in()
Deprecated.- Specified by:
inin interfaceRejectableChannel
-
out
public RejectableChannelOutput out()
Deprecated.- Specified by:
outin interfaceRejectableChannel
-
-