T
- type of messages, that are handled by this handlerpublic abstract class CommunoteMessageHandler<T extends BaseMessage> extends Object
Constructor and Description |
---|
CommunoteMessageHandler() |
Modifier and Type | Method and Description |
---|---|
abstract Class<T> |
getHandledMessageClass()
Class of the messages to be handled by this handler.
|
String |
getHandledMessageType()
returns header selector, to be used for the message filtering.
|
abstract String |
getVersion()
Handler version is used to distinguish between different formats of the semantically same
message type.
|
abstract CommunoteReplyMessage |
handleMessage(T message)
handles message of the appropriate type.
|
public abstract Class<T> getHandledMessageClass()
public String getHandledMessageType()
public abstract String getVersion()
public abstract CommunoteReplyMessage handleMessage(T message) throws Exception
message
- the messageException
- any occurred exceptionCopyright © 2019 Communote team. All rights reserved.