This class does not need to be used by standard JCSP users. It is exposed so that the connection mechanism can be extended for custom connections.
Constructor and description |
---|
protected AltingConnectionClientImpl
(AltingChannelInput fromServer, ChannelOutput openToServer, ChannelOutput reqToServer, ChannelOutput backToClient) Constructs a new instance. |
Type | Name and description |
---|---|
protected void |
claim() This claims a lock on the client. |
boolean |
isOpen() Returns whether the server has kept its end of the Connection open. |
protected void |
release() This releases a lock on the client. |
Object |
reply() Receives some data back from the server after request(Object) has been called. |
void |
request(Object data) Sends some data over the connection to server once the connection has been opened. |
Methods inherited from class | Name |
---|---|
class AltingConnectionClient |
getAltingChannel, pending, setAltingChannel |
class Guard |
schedule |
Constructs a new instance. This constructor must be called by a subclass which is responsible for creating the channels used by the connection and must pass them into this constructor.
This claims a lock on the client. This implementation does nothing as instances of this class are only meant to be used with One2?Connection objects.
Returns whether the server has kept its end of the Connection open.
This should only be called after a call to reply()
and
before any other Connection method is called.
true
iff the server has kept the connection
open.This releases a lock on the client. This implementation does nothing as instances of this class are only meant to be used with One2?Connection objects.
Receives some data back from the server after
request(Object)
has been called.
Object
sent from the server.Sends some data over the connection to server once the connection has been opened.
data the
- Object
to send to the server.JCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk