Interface IMessagePreprocessor<T>

  • All Known Implementing Classes:
    FipaMessagePreprocessor

    public interface IMessagePreprocessor<T>
    Allows adding special treatment of certain user message types like FIPA messages.
    • Method Detail

      • preprocessMessage

        void preprocessMessage​(IMsgHeader header,
                               T msg)
        Optionally preprocess a message before sending.
        Parameters:
        header - The message header, may be changed by preprocessor.
        msg - The user object, may be changed by preprocessor.
      • isReply

        boolean isReply​(T message,
                        T reply)
        Optionally check for reply matches. Currently only used in BDIX.
        Parameters:
        message - The initial message object.
        reply - The replied message object.
        Returns:
        true when the reply matches the initial message.