|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageHandler
A message handler is used to process, generate or fetch messages.
A handler instance may not be thread-safe, as their lifecycle is controlled by the Distribution container.
handlers thread-safe.
Method Summary | |
---|---|
void |
destroy()
The distribution container calls this method on all handlers before finishing the distribution process, allowing them to clean up resources. |
java.lang.String |
getId()
The handler Id. |
void |
init()
The distribution container calls this method on all handlers before starting the distribution process. |
MessageEnumeration |
process(DistributionMessage message)
Processes a Message |
Method Detail |
---|
java.lang.String getId()
void init() throws DistributionProcessingException, DistributionConfigurationException
DistributionProcessingException
DistributionConfigurationException
void destroy() throws DistributionProcessingException, DistributionConfigurationException
DistributionProcessingException
DistributionConfigurationException
MessageEnumeration process(DistributionMessage message) throws DistributionProcessingException, DistributionConfigurationException
DistributionProcessingException
DistributionConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |