public class NetSharedAltingConnectionClient extends SharedAltingConnectionClient implements NetSharedConnectionClient
Defines a class whose instances should be
that connect to a SharedAltingConnectionClientConnectionServer 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, releaseisOpen, reply, requestgetAltingChannel, pending, setAltingChannelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisOpen, reply, requestprotected 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 NetworkedNetChannelLocation object.Networked.getChannelLocation()public SharedConnectionClient duplicate()
Produces a duplicate
NetSharedAltingConnectionClient object which
may be used by another process.
duplicate in interface SharedConnectionClientduplicate in class SharedAltingConnectionClientSharedConnectionClient
object.public void destroyClient()
Destroys this networked client object.
This frees any resources used within the JCSP.NET infrastructure.
Copyright © 1996–2022. All rights reserved.