PoisonException
public class RejectableBufferedOne2AnyChannel extends Object implements RejectableChannel
This implements a one-to-any object channel with user-definable buffering,
safe for use by a single writer and many readers. Refer to One2AnyChannel
for a
description of this behaviour.
Additionally, this channel supports a reject
operation. One of the readers may call
the reject method to force any current writer to abort with a
ChannelDataRejectedException
(unless there is already a read which will cause
completion of the write). Subsequent read and write attempts will immediately cause a
ChannelDataRejectedException
.
Constructor and Description |
---|
RejectableBufferedOne2AnyChannel(ChannelDataStore data)
Deprecated.
Constructs a new
RejectableBufferedOne2AnyChannel |
public RejectableBufferedOne2AnyChannel(ChannelDataStore data)
RejectableBufferedOne2AnyChannel
data
- the buffer implementation to use.public RejectableChannelInput in()
in
in interface RejectableChannel
public RejectableChannelOutput out()
out
in interface RejectableChannel
Submit a bug or feature to jcsp-team@kent.ac.uk
Version 1.1-rc4 of the JCSP API Specification (Copyright 1997-2008 P.D.Austin and P.H.Welch - All Rights Reserved)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.