eneter.messaging.endpoints.stringmessages
Interface IDuplexStringMessageReceiver

All Superinterfaces:
IAttachableDuplexInputChannel

public interface IDuplexStringMessageReceiver
extends IAttachableDuplexInputChannel

Receiver of text messages.


Method Summary
 Event<StringRequestReceivedEventArgs> requestReceived()
          The event is raised when a text message is received.
 Event<ResponseReceiverEventArgs> responseReceiverConnected()
          The event is raised when a duplex string message sender opened the connection.
 Event<ResponseReceiverEventArgs> responseReceiverDisconnected()
          The event is raised when a duplex string message sender closed the connection.
 void sendResponseMessage(java.lang.String responseReceiverId, java.lang.String responseMessage)
          Sends the response message back to the string message sender.
 
Methods inherited from interface eneter.messaging.infrastructure.attachable.IAttachableDuplexInputChannel
attachDuplexInputChannel, detachDuplexInputChannel, getAttachedDuplexInputChannel, isDuplexInputChannelAttached
 

Method Detail

requestReceived

Event<StringRequestReceivedEventArgs> requestReceived()
The event is raised when a text message is received.

Returns:

responseReceiverConnected

Event<ResponseReceiverEventArgs> responseReceiverConnected()
The event is raised when a duplex string message sender opened the connection.

Returns:

responseReceiverDisconnected

Event<ResponseReceiverEventArgs> responseReceiverDisconnected()
The event is raised when a duplex string message sender closed the connection.

Returns:

sendResponseMessage

void sendResponseMessage(java.lang.String responseReceiverId,
                         java.lang.String responseMessage)
                         throws java.lang.Exception
Sends the response message back to the string message sender.

Parameters:
responseReceiverId - identifies the string message sender that shall receive the response
responseMessage - response text message
Throws:
java.lang.Exception