public interface IDuplexOutputChannel
Modifier and Type | Method and Description |
---|---|
void |
closeConnection()
Closes the connection with the input channel.
|
Event<DuplexChannelEventArgs> |
connectionClosed()
The event is raised when the connection was closed from the input channel or the it was closed due to a broken connection.
|
Event<DuplexChannelEventArgs> |
connectionOpened()
The event is raised when the connection with the input channel was opened.
|
java.lang.String |
getChannelId()
Returns the address of the input channel.
|
IThreadDispatcher |
getDispatcher()
Returns dispatcher which defines the threading model for received messages and raised events.
|
java.lang.String |
getResponseReceiverId()
Returns the unique identifier of this output channel.
|
boolean |
isConnected()
Returns true if the output channel is connected to the input channel and listens to response messages.
|
void |
openConnection()
Opens the connection with the input channel.
|
Event<DuplexChannelMessageEventArgs> |
responseMessageReceived()
The event is raised when a response message was received.
|
void |
sendMessage(java.lang.Object message)
Sends the message to the input channel.
|
Event<DuplexChannelEventArgs> connectionOpened()
Event<DuplexChannelEventArgs> connectionClosed()
Event<DuplexChannelMessageEventArgs> responseMessageReceived()
java.lang.String getChannelId()
java.lang.String getResponseReceiverId()
void sendMessage(java.lang.Object message) throws java.lang.Exception
message
- message to be sent. It can be String or byte[] or some other type depending on used protocol formatter.java.lang.Exception
void openConnection() throws java.lang.Exception
java.lang.Exception
void closeConnection()
boolean isConnected()
IThreadDispatcher getDispatcher()