Package org.jcsp.lang
Interface Any2OneConnection<T>
-
- All Superinterfaces:
ConnectionWithSharedAltingClient<T>
- All Known Implementing Classes:
Any2OneConnectionImpl
public interface Any2OneConnection<T> extends ConnectionWithSharedAltingClient<T>
Defines an interface for a connection that can be shared by multiple concurrent clients but used by a single server. The server end of the connection can be used as a guard in an
Alternative.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SharedAltingConnectionClient<T>client()Returns a client end of the connection.AltingConnectionServer<T>server()Returns the server end of the connection.
-
-
-
Method Detail
-
client
SharedAltingConnectionClient<T> client()
Returns a client end of the connection. This may only be safely used by a single process but further calls will return new clients which may be used by other processes.- Specified by:
clientin interfaceConnectionWithSharedAltingClient<T>- Returns:
- a new
SharedAltingConnectionClientobject.
-
server
AltingConnectionServer<T> server()
Returns the server end of the connection.- Returns:
- the instance of the
AltingConnectionServer.
-
-