class One2AnyConnectionImpl<T> extends java.lang.Object implements One2AnyConnection<T>
One2AnyConnection
.
Each end is safe to be used by one thread at a time.Modifier and Type | Field and Description |
---|---|
private One2OneChannel<T> |
chanFromServer |
private Any2OneChannel<T> |
chanSynch |
private One2OneChannel<T> |
chanToServer |
private AltingConnectionClient |
client |
Constructor and Description |
---|
One2AnyConnectionImpl()
Initializes all the attributes to necessary values.
|
Modifier and Type | Method and Description |
---|---|
AltingConnectionClient |
client()
Returns the
AltingConnectionClient that can
be used by a single process at any instance. |
SharedConnectionServer |
server()
Returns a
SharedConnectionServer object for this
connection. |
private AltingConnectionClient client
private One2OneChannel<T> chanToServer
private One2OneChannel<T> chanFromServer
private Any2OneChannel<T> chanSynch
public One2AnyConnectionImpl()
ChannelServer
interface.
Constructor for One2OneConnectionImpl.public AltingConnectionClient client()
AltingConnectionClient
that can
be used by a single process at any instance.
Each call to this method will return the same object reference.client
in interface One2AnyConnection<T>
AltingConnectionClient
object.public SharedConnectionServer server()
SharedConnectionServer
object for this
connection. This method can be called multiple times to return a new
SharedConnectionServer
object each time. Any object
created can only be used by one process at a time but the set of
objects constructed can be used concurrently.server
in interface ConnectionWithSharedAltingServer<T>
server
in interface One2AnyConnection<T>
SharedConnectionServer
object.