public class RejectableOne2OneChannel
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 a
ChannelDataRejectedException
. Subsequent read and write attempts will immediately cause a
ChannelDataRejectedException
.
Note that the reject
operation cannot be called concurrently to a read.
Constructor and description |
---|
RejectableOne2OneChannel
() Constructs a new channel. |
Type | Name and description |
---|---|
RejectableChannelInput |
in() |
RejectableAltingChannelInput |
inAlt() |
RejectableChannelOutput |
out() |
JCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk