Interface MessageInterceptor


  • public interface MessageInterceptor
    • Method Detail

      • init

        void init​(String agentId,
                  String agentName,
                  Properties properties)
        initialize this interceptor
        Parameters:
        agentId - the string representation of agentId
        agentName - the agent name
        properties - the properties come from the client
      • handle

        boolean handle​(Message msg,
                       int key)
        Implement this method to intercept message on server side.
        Parameters:
        msg - the message
        key - the connection key, on destination key=-1
        Returns:
        true if continue with the next interceptor, false send the message in DMQ.