Package org.jcsp.util

Package org.jcsp.util Description

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 One2OneChannel.create<TT>create</TT> 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.