public interface SynchroMessageConnection
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this connection.
|
void |
connect(Map env)
Establish the connection.
|
String |
getConnectionId()
Returns this connection identifier.
|
void |
sendOneWay(Message msg)
Sends a message to the remote side and does not need a response.
|
void connect(Map env) throws IOException
Establish the connection. This method must be called before any other method of this interface. The behavior is unspecified if not.
env - the properties of the connection.IOException - if the connection cannot be made.void sendOneWay(Message msg) throws IOException, UnsupportedOperationException
1) sends out the message and gets return at once. For example, if the underlying protocol is asynchronous.
2) sends out the message and is blocked until arrival of a response. For example, if the underlying protocol supports only synchronous communication.
3) throws UnsupportedOperationException to tell the caller
that it is not supported by the implementation. For example, if the object is used
on a server side and it is not mandatory for the server to send a request spontaneously.
UnsupportedOperationException - thrown if the operation is not supported
by an implementation.IOException - if a message could not be sent because of a communication problem.String getConnectionId()
void close()
throws IOException
IOExceptionCopyright © 2019 Terracotta, Inc.. All rights reserved.