public interface ISyncMultitypedMessageSender extends IAttachableDuplexOutputChannel
Modifier and Type | Method and Description |
---|---|
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.
|
<TRequest,TResponse> |
sendRequestMessage(TRequest message,
java.lang.Class<TResponse> responseClazz,
java.lang.Class<TRequest> requestClazz)
Sends request message and returns the response.
|
attachDuplexOutputChannel, detachDuplexOutputChannel, getAttachedDuplexOutputChannel, isDuplexOutputChannelAttached
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