TResponse
- Type of the response message which can be sent back.TRequest
- Type of the request message which can be received.public interface IDuplexTypedMessageReceiver<TResponse,TRequest> extends IAttachableDuplexInputChannel
Modifier and Type | Method and Description |
---|---|
Event<TypedRequestReceivedEventArgs<TRequest>> |
messageReceived()
Raised when a message is received.
|
Event<ResponseReceiverEventArgs> |
responseReceiverConnected()
Raised when a new client is connected.
|
Event<ResponseReceiverEventArgs> |
responseReceiverDisconnected()
Raised when a client closed the connection.
|
void |
sendResponseMessage(java.lang.String responseReceiverId,
TResponse responseMessage)
Sends message to the client.
|
attachDuplexInputChannel, detachDuplexInputChannel, getAttachedDuplexInputChannel, isDuplexInputChannelAttached
Event<TypedRequestReceivedEventArgs<TRequest>> messageReceived()
Event<ResponseReceiverEventArgs> responseReceiverConnected()
Event<ResponseReceiverEventArgs> responseReceiverDisconnected()
void sendResponseMessage(java.lang.String responseReceiverId, TResponse responseMessage) throws java.lang.Exception
responseReceiverId
- identifies the clientresponseMessage
- response messagejava.lang.Exception