class BufferedAny2OneChannel<T> extends Any2OneImpl<T>
The reading process may ALT
on this channel.
The writing process is committed (i.e. it may not back off).
The constructor requires the user to provide
the channel with a plug-in driver conforming to the
ChannelDataStore
interface. This allows a variety of different channel semantics to be
introduced -- including buffered channels of user-defined capacity
(including infinite), overwriting channels (with various overwriting
policies) etc..
Standard examples are given in the org.jcsp.util package, but
careful users may write their own.
Constructor and Description |
---|
BufferedAny2OneChannel(ChannelDataStore<T> data)
Constructs a new BufferedAny2OneChannel with the specified ChannelDataStore.
|
endRead, in, out, read, readerDisable, readerEnable, readerPending, readerPoison, startRead, write, writerPoison
public BufferedAny2OneChannel(ChannelDataStore<T> data)
data
- The ChannelDataStore used to store the data for the channel