Class ConversationMessageListener
java.lang.Object
com.levigo.jadice.web.transport.client.messaging.ConversationMessageListener
- All Implemented Interfaces:
MessageListener
This listener is responsible for handling messages that are sent as part of a
conversation, i.e. when the client sends a message and expects one or more direct responses
to the sent message. In this case, we need to preserve the context so one callback can handle
different message types.
Conversations require some more control flow than usual, they need to be ended by the server
once it is done processing a message.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static ConversationMessageListener
get()
void
registerConversation
(int conversationId, ConversationMessageListener.ConversationListener listener) void
unregisterConversation
(int conversationId)
-
Method Details
-
consume
- Specified by:
consume
in interfaceMessageListener
- Throws:
Exception
-
registerConversation
public void registerConversation(int conversationId, ConversationMessageListener.ConversationListener listener) -
unregisterConversation
public void unregisterConversation(int conversationId) -
get
-