public abstract class AbstractMessageProcessor<MessageT extends Message<MessageResponseT>,MessageResponseT extends MessageResponse> extends Object implements MessageProcessor<MessageT,MessageResponseT>
AbstractMessageProcessor abstract class implements boilerplate methods of the MessageProcessor interface such that the user of this interface does not have to bother.| Constructor and Description |
|---|
AbstractMessageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Class<MessageT> |
getCompatibleMessageClassType()
Retrieves class type of the message this processor is to able to process.
|
Class<MessageResponseT> |
getCompatibleMessageResponseClassType()
Retrieves class type of the message response this processor is set to return.
|
String |
getCompatibleMessageType()
Retrieves message type identifier that this processor is able to process.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocesspublic String getCompatibleMessageType()
MessageProcessorThe type identifier must be unique system-wide and be identical to the value returned by
the Message.getType() method which is generically typed in the concrete implementation
of this processor.
getCompatibleMessageType in interface MessageProcessor<MessageT extends Message<MessageResponseT>,MessageResponseT extends MessageResponse>Message this processor is typed with.public Class<MessageT> getCompatibleMessageClassType()
MessageProcessorgetCompatibleMessageClassType in interface MessageProcessor<MessageT extends Message<MessageResponseT>,MessageResponseT extends MessageResponse>public Class<MessageResponseT> getCompatibleMessageResponseClassType()
MessageProcessorgetCompatibleMessageResponseClassType in interface MessageProcessor<MessageT extends Message<MessageResponseT>,MessageResponseT extends MessageResponse>Copyright © 2018. All rights reserved.