Package org.jcsp.lang
Class RejectableOne2OneChannel
- java.lang.Object
-
- org.jcsp.lang.RejectableOne2OneChannel
-
- All Implemented Interfaces:
RejectableChannel
public class RejectableOne2OneChannel extends java.lang.Object implements RejectableChannel
Deprecated.This channel is superceded by the poison mechanisms, please seePoisonException
. It remains only because it is used by some of the networking features.This implements a one-to-one object channel 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 aChannelDataRejectedException
. Subsequent read and write attempts will immediately cause aChannelDataRejectedException
.Note that the
reject
operation cannot be called concurrently to a read.
-
-
Field Summary
Fields Modifier and Type Field Description private One2OneChannelImpl
innerChannel
Deprecated.
-
Constructor Summary
Constructors Constructor Description RejectableOne2OneChannel()
Deprecated.Constructs a new channel.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RejectableChannelInput
in()
Deprecated.RejectableAltingChannelInput
inAlt()
Deprecated.RejectableChannelOutput
out()
Deprecated.
-
-
-
Field Detail
-
innerChannel
private One2OneChannelImpl innerChannel
Deprecated.
-
-
Method Detail
-
inAlt
public RejectableAltingChannelInput inAlt()
Deprecated.
-
in
public RejectableChannelInput in()
Deprecated.- Specified by:
in
in interfaceRejectableChannel
-
out
public RejectableChannelOutput out()
Deprecated.- Specified by:
out
in interfaceRejectableChannel
-
-