public class SharedAltingConnectionClient extends AltingConnectionClientImpl
Implements a client end of a Connection which can have multiple client processes.
This object cannot itself be shared between concurrent processes
but duplicate objects can be generated that can be used by
multiple concurrent processes. This can be achieved using
the duplicate()
method.
The reply from the server can be ALTed over.
Constructor and description |
---|
protected SharedAltingConnectionClient
(AltingChannelInput fromServer, ChannelInput synchIn, ChannelOutput openToServer, ChannelOutput reqToServer, SharedChannelOutput synchOut, ChannelOutput backToClient, ConnectionWithSharedAltingClient parent) |
Type | Name and description |
---|---|
protected void |
claim() |
SharedConnectionClient |
duplicate() |
protected void |
release() |
Methods inherited from class | Name |
---|---|
class AltingConnectionClientImpl |
claim, isOpen, release, reply, request |
class AltingConnectionClient |
getAltingChannel, pending, setAltingChannel |
class Guard |
schedule |
Returns a SharedConnectionClient
object that is
a duplicate of the object on which this method is called.
This allows a process using a SharedAltingConnectionClient
object to pass references to the connection client to multiple
processes.
The object returned can be cast into a
SharedConnectionClient
object.
SharedAltingConnectionClient
object.JCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk