|
CSP for Java (JCSP) 1.0-rc7 |
||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
ChannelDataStore | This is the interface for object channel plug-ins that define their buffering characteristics. |
Class Summary | |
Buffer | This is used to create a buffered object channel that never loses data. |
InfiniteBuffer | This is used to create a buffered object channel that always accepts and never loses any input. |
OverFlowingBuffer | This is used to create a buffered object channel that always accepts input, discarding its last entered data if full. |
OverWriteOldestBuffer | This is used to create a buffered object channel that always accepts input, overwriting its oldest data if full. |
OverWritingBuffer | This is used to create a buffered object channel that always accepts input, overwriting its last entered data if full. |
ZeroBuffer | This is used to create a zero-buffered object channel that never loses data. |
Error Summary | |
BufferSizeError | This is thrown if an attempt is made to create some variety of buffered channel with a zero or negative sized buffer. |
This provides classes and interfaces to customise the semantics of Object channels.
By default, channels are zero-buffered and fully synchronised: both a reader and a writer have to be ready for a communication to proceed. Whoever gets to the communication point first has to wait for the other party.
This package provides a variety of classes conforming
to the ChannelDataStore
interface.
These classes can be used as plug-ins to the static channel
create
methods to customise its semantics. Classes are provided for blocking FIFO buffers,
overwriting buffers (losing either the newest or oldest data) and
infinite (within the realms of your virtual memory) buffers.
Users may write and use their own implementations of
the ChannelDataStore
interface, but
great care must be taken to specify its semantics.
It should not normally be necessary to do this.
|
CSP for Java (JCSP) 1.0-rc7 |
||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |