public interface MessageProcessorRegistry
MessageProcessorRegistry interface defines methods for adding, removing, and retrieving
MessageProcessors based on the type of the Message.| Modifier and Type | Method and Description |
|---|---|
void |
addProcessor(MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse> processor)
Adds
processor to the message processor registry. |
void |
addProcessors(List<? extends MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse>> processors)
Adds
processors to the message processor registry. |
MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse> |
getProcessorFor(String messageType)
Retrieves a concrete
MessageProcessor for the type of the message. |
List<MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse>> |
getProcessors()
Retrieve all message processors successfully registered in the message processor registry.
|
void |
removeProcessor(String messageType)
Removes message processor which is identified by the
messageType from the message
processor registry. |
void addProcessor(MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse> processor)
processor to the message processor registry.processor - Message processor to add to the message processor registry.void addProcessors(List<? extends MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse>> processors)
processors to the message processor registry.processors - List of message processors to add to the message processor registry.MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse> getProcessorFor(String messageType)
MessageProcessor for the type of the message. If not found,
returns null.messageType - Message type identifier that is unique system-wide.MessageProcessor based on the
messageType. If no processor is found for the message type, returns
null.void removeProcessor(String messageType)
messageType from the message
processor registry.messageType - Message type identifier that is unique system-wide.List<MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse>> getProcessors()
Copyright © 2018. All rights reserved.