class One2OneConnectionImpl<T> extends AbstractConnectionImpl implements One2OneConnection<T>
One2OneConnection
.
Each end is safe to be used by one thread at a time.AbstractConnectionImpl.NonSingleRequestOpenMsg
Modifier and Type | Field and Description |
---|---|
private AltingConnectionClient<T> |
client |
private AltingConnectionServer<T> |
server |
CLIENT_STATE_CLOSED, CLIENT_STATE_MADE_REQ, CLIENT_STATE_OPEN, nonSingleRequestMsg, SERVER_STATE_CLOSED, SERVER_STATE_OPEN, SERVER_STATE_RECEIVED
Constructor and Description |
---|
One2OneConnectionImpl()
Initializes all the attributes to necessary values.
|
Modifier and Type | Method and Description |
---|---|
AltingConnectionClient<T> |
client()
Returns the
AltingConnectionClient that can
be used by a single process at any instance. |
AltingConnectionServer<T> |
server()
Returns the
AltingConnectionServer that can
be used by a single process at any instance. |
private AltingConnectionClient<T> client
private AltingConnectionServer<T> server
public One2OneConnectionImpl()
ChannelServer
inteface.
Constructor for One2OneConnectionImpl.public AltingConnectionClient<T> client()
AltingConnectionClient
that can
be used by a single process at any instance.
This method will always return the same
AltingConnectionClient
object.
One2OneConnection
is only intendended to have two ends.client
in interface One2OneConnection<T>
AltingConnectionClient
object.public AltingConnectionServer<T> server()
AltingConnectionServer
that can
be used by a single process at any instance.
This method will always return the same
AltingConnectionServer
object.
One2OneConnection
is only intendended to have two ends.server
in interface One2OneConnection<T>
AltingConnectionServer
object.