|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMultiTypedMessageSender
Sender for multiple message types. This is a client component which can send and receive messages of multiple types.
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. |
|
java.util.ArrayList<java.lang.Class<?>> |
getRegisteredResponseMessageTypes()
Returns the list of registered response message types which can be received. |
|
|
registerResponseMessageReceiver(EventHandler<TypedResponseReceivedEventArgs<T>> handler,
java.lang.Class<T> clazz)
Registers response message handler for specified message type. |
|
|
sendRequestMessage(TRequestMessage message,
java.lang.Class<TRequestMessage> clazz)
Sends request message. |
|
|
unregisterResponseMessageReceiver(java.lang.Class<T> clazz)
Unregisters the response message handler for the specified message type. |
Methods inherited from interface eneter.messaging.infrastructure.attachable.IAttachableDuplexOutputChannel |
---|
attachDuplexOutputChannel, detachDuplexOutputChannel, getAttachedDuplexOutputChannel, isDuplexOutputChannelAttached |
Method Detail |
---|
Event<DuplexChannelEventArgs> connectionOpened()
Event<DuplexChannelEventArgs> connectionClosed()
<T> void registerResponseMessageReceiver(EventHandler<TypedResponseReceivedEventArgs<T>> handler, java.lang.Class<T> clazz) throws java.lang.Exception
handler
- response message handler.clazz
- type of the response message.
java.lang.Exception
<T> void unregisterResponseMessageReceiver(java.lang.Class<T> clazz)
clazz
- java.util.ArrayList<java.lang.Class<?>> getRegisteredResponseMessageTypes()
<TRequestMessage> void sendRequestMessage(TRequestMessage message, java.lang.Class<TRequestMessage> clazz) throws java.lang.Exception
message
- request messageclazz
- type of the message
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |