|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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>
Receiver for one specified message type. This is a service component which can receive request messages and send back response messages. It can receive messages only from DuplexTypedMessageSender or SyncDuplexTypedMessageSender.
Method Summary | |
---|---|
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. |
Methods inherited from interface eneter.messaging.infrastructure.attachable.IAttachableDuplexInputChannel |
---|
attachDuplexInputChannel, detachDuplexInputChannel, getAttachedDuplexInputChannel, isDuplexInputChannelAttached |
Method Detail |
---|
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 message
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |