TResponse
- Type of the response message which can be received.TRequest
- Type of the request message which can be sent.public interface IDuplexTypedMessageSender<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.
|
Event<TypedResponseReceivedEventArgs<TResponse>> |
responseReceived()
Raised when a response message is received.
|
void |
sendRequestMessage(TRequest message)
Sends message to the service.
|
attachDuplexOutputChannel, detachDuplexOutputChannel, getAttachedDuplexOutputChannel, isDuplexOutputChannelAttached
Event<DuplexChannelEventArgs> connectionOpened()
Event<DuplexChannelEventArgs> connectionClosed()
Event<TypedResponseReceivedEventArgs<TResponse>> responseReceived()
void sendRequestMessage(TRequest message) throws java.lang.Exception
message
- java.lang.Exception