Interface MessageHandler<T>

Type Parameters:
T - The type of message object to expect to handle.
All Known Implementing Classes:
ScriptedMessageHandler

public interface MessageHandler<T>
Each MessageSubscriber has a single MessageHandler for it to call to handle any received message.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleMessage(T message)
    The implementor is expected to parse the message and execute logic that the message is requesting or represents.
  • Method Details

    • handleMessage

      void handleMessage(T message) throws org.forgerock.json.resource.ResourceException
      The implementor is expected to parse the message and execute logic that the message is requesting or represents. Any problem dealing with the message should result in a ResourceException so that the Subscriber can determine what to do with the message.
      Parameters:
      message - the message received by the subscriber.
      Throws:
      org.forgerock.json.resource.ResourceException
      See Also: