|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISyncMultitypedMessageSender
Synchronized sender for multiple message types (it waits until the response is received). Message sender which sends request messages of specified type and receive response messages of specified type. Synchronous means when the message is sent it waits until the response message is received. If the waiting for the response message exceeds the specified timeout the TimeoutException is thrown.
Method Summary | ||
---|---|---|
Event<DuplexChannelEventArgs> |
connectionClosed()
Raised when the service closed the connection with the client. |
|
Event<DuplexChannelEventArgs> |
connectionOpened()
Raised when the connection with the receiver is open. |
|
|
sendRequestMessage(TRequest message,
java.lang.Class<TResponse> responseClazz,
java.lang.Class<TRequest> requestClazz)
Sends request message and returns the response. |
Methods inherited from interface eneter.messaging.infrastructure.attachable.IAttachableDuplexOutputChannel |
---|
attachDuplexOutputChannel, detachDuplexOutputChannel, getAttachedDuplexOutputChannel, isDuplexOutputChannelAttached |
Method Detail |
---|
Event<DuplexChannelEventArgs> connectionOpened()
Event<DuplexChannelEventArgs> connectionClosed()
<TRequest,TResponse> TResponse sendRequestMessage(TRequest message, java.lang.Class<TResponse> responseClazz, java.lang.Class<TRequest> requestClazz) throws java.lang.Exception
message
- request message.responseClazz
- type of the expected response message.requestClazz
- type of the request message.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |