Interface BrokerCommandCallback

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onFailure​(java.util.Map<java.lang.String,​java.lang.Object> response)
      Whenever any issue occurs during command invocation it will be passed here as an instance of Throwable.
      void onResponse​(java.util.Map<java.lang.String,​java.lang.Object> response)
      When a command response arrive this method is invoked and it should contain continuation logic for the command.
    • Method Detail

      • onResponse

        void onResponse​(java.util.Map<java.lang.String,​java.lang.Object> response)
        When a command response arrive this method is invoked and it should contain continuation logic for the command.
        Parameters:
        response - - Map containing response where we optionally provide status key. It is provided when an an issue occurred on the server side.
      • onFailure

        void onFailure​(java.util.Map<java.lang.String,​java.lang.Object> response)
        Whenever any issue occurs during command invocation it will be passed here as an instance of Throwable.
        Parameters:
        response - - Map containing error response where we optionally provide status key. It is provided when an issue occurred on the server side.