Interface MessageHandler


public interface MessageHandler
A simple interface to register message handlers to Mediators.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    handleMessage(Message message, AgentContext context)
    Gets an already opened message from an agent mediator and tries to process it.
  • Method Details

    • handleMessage

      boolean handleMessage(Message message, AgentContext context) throws Exception
      Gets an already opened message from an agent mediator and tries to process it. Returns true, if this handler has successfully handled the message, false otherwise.
      Parameters:
      message -
      context -
      Returns:
      true, if the received message has been handled and can be removed
      Throws:
      Exception