public class NetSharedAltingConnectionClient extends SharedAltingConnectionClient implements NetSharedConnectionClient
Defines a class whose instances should be
that connect to a SharedAltingConnectionClient
ConnectionServer
over a JCSP.NET
network.
Individual instances may not be used by multiple processes but
duplicate clients can be obtained by invoking
. These duplicates work over the
same connection and each one may be used by a different process.
duplicate()
Modifier | Constructor and Description |
---|---|
protected |
NetSharedAltingConnectionClient(Any2OneChannel synchChan,
NetAltingChannelInput fromServer,
NetChannelOutput openToServer,
NetChannelOutput reqToServer,
NetChannelOutput backToClient)
Constructor for NetSharedAltingConnectionClient.
|
Modifier and Type | Method and Description |
---|---|
void |
destroyClient()
Destroys this networked client object.
|
SharedConnectionClient |
duplicate()
Produces a duplicate
NetSharedAltingConnectionClient object which
may be used by another process. |
NetChannelLocation |
getChannelLocation()
Returns the address location of the connection server.
|
claim, release
isOpen, reply, request
getAltingChannel, pending, setAltingChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOpen, reply, request
protected NetSharedAltingConnectionClient(Any2OneChannel synchChan, NetAltingChannelInput fromServer, NetChannelOutput openToServer, NetChannelOutput reqToServer, NetChannelOutput backToClient)
Constructor for NetSharedAltingConnectionClient.
fromServer
- synchIn
- toServer
- synchOut
- backToClient
- parent
- public NetChannelLocation getChannelLocation()
getChannelLocation
in interface Networked
NetChannelLocation
object.Networked.getChannelLocation()
public SharedConnectionClient duplicate()
Produces a duplicate
NetSharedAltingConnectionClient
object which
may be used by another process.
duplicate
in interface SharedConnectionClient
duplicate
in class SharedAltingConnectionClient
SharedConnectionClient
object.public void destroyClient()
Destroys this networked client object.
This frees any resources used within the JCSP.NET infrastructure.
Copyright © 1996–2016. All rights reserved.