eneter.messaging.endpoints.stringmessages
Interface IDuplexStringMessageSender

All Superinterfaces:
IAttachableDuplexOutputChannel

public interface IDuplexStringMessageSender
extends IAttachableDuplexOutputChannel

Sender of text messages.


Method Summary
 Event<DuplexChannelEventArgs> connectionClosed()
          The event is raised when the connection with receiver is closed.
 Event<DuplexChannelEventArgs> connectionOpened()
          The event is raised when the connection with receiver is opened.
 Event<StringResponseReceivedEventArgs> responseReceived()
          The event is raised when a response message is received.
 void sendMessage(java.lang.String message)
          Sends the text message to the response receiver.
 
Methods inherited from interface eneter.messaging.infrastructure.attachable.IAttachableDuplexOutputChannel
attachDuplexOutputChannel, detachDuplexOutputChannel, getAttachedDuplexOutputChannel, isDuplexOutputChannelAttached
 

Method Detail

connectionOpened

Event<DuplexChannelEventArgs> connectionOpened()
The event is raised when the connection with receiver is opened.

Returns:

connectionClosed

Event<DuplexChannelEventArgs> connectionClosed()
The event is raised when the connection with receiver is closed.

Returns:

responseReceived

Event<StringResponseReceivedEventArgs> responseReceived()
The event is raised when a response message is received.

Returns:

sendMessage

void sendMessage(java.lang.String message)
                 throws java.lang.Exception
Sends the text message to the response receiver.

Parameters:
message - text message.
Throws:
java.lang.Exception