TResponse
- Response message type.TRequest
- Request message type.public interface ISyncDuplexTypedMessageSender<TResponse,TRequest> 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.
|
TResponse |
sendRequestMessage(TRequest message)
Sends the request message and returns the response.
|
attachDuplexOutputChannel, detachDuplexOutputChannel, getAttachedDuplexOutputChannel, isDuplexOutputChannelAttached
Event<DuplexChannelEventArgs> connectionOpened()
Event<DuplexChannelEventArgs> connectionClosed()
TResponse sendRequestMessage(TRequest message) throws java.lang.Exception
message
- request messagejava.lang.Exception