CSP for Java
(JCSP) 1.1-rc4

org.jcsp.lang
Class RejectableBufferedOne2OneChannel

java.lang.Object
  extended by org.jcsp.lang.RejectableBufferedOne2OneChannel
All Implemented Interfaces:
RejectableChannel

Deprecated. This channel is superceded by the poison mechanisms, please see PoisonException

public class RejectableBufferedOne2OneChannel
extends Object
implements RejectableChannel

This implements a one-to-one object channel with user-definable buffering, 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.

Author:
Quickstone Technologies Limited

Constructor Summary
RejectableBufferedOne2OneChannel(ChannelDataStore buffer)
          Deprecated. Constructs a new channel.
 
Method Summary
 RejectableChannelInput in()
          Deprecated.  
 RejectableAltingChannelInput inAlt()
          Deprecated.  
 RejectableChannelOutput out()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RejectableBufferedOne2OneChannel

public RejectableBufferedOne2OneChannel(ChannelDataStore buffer)
Deprecated. 
Constructs a new channel.

Parameters:
buffer - the buffer implementation to use.
Method Detail

inAlt

public RejectableAltingChannelInput inAlt()
Deprecated. 

in

public RejectableChannelInput in()
Deprecated. 
Specified by:
in in interface RejectableChannel

out

public RejectableChannelOutput out()
Deprecated. 
Specified by:
out in interface RejectableChannel

CSP for Java
(JCSP) 1.1-rc4

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.