Interface Call

  • All Implemented Interfaces:

    
    public interface Call<REQ extends Object, RESP extends Object>
    
                        

    Interface of call, it's the abstraction of API call.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit execute(REQ request, Callback<RESP> callback) Execute the call asynchronously.
      abstract Unit execute(ConnectionMode connectionMode, REQ request, Callback<RESP> callback) Execute the call asynchronously.
      abstract Unit syncCall(REQ request, Callback<RESP> callback) Execute the call synchronously.
      abstract Unit asyncCall(REQ request, Callback<RESP> callback) Execute the call asynchronously.
      abstract Unit asyncCall(REQ request, Executor executor, Callback<RESP> callback) Execute the call asynchronously and use provided executor to invoke the callback
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • execute

         abstract Unit execute(REQ request, Callback<RESP> callback)

        Execute the call asynchronously. on.api.error.DriveMotionException Signals that some skd exception has occurred, see DriveMotionException for more information

      • execute

         abstract Unit execute(ConnectionMode connectionMode, REQ request, Callback<RESP> callback)

        Execute the call asynchronously. on.api.error.DriveMotionException Signals that some skd exception has occurred, see DriveMotionException for more information

      • syncCall

        @Deprecated(message = "using execute instead") abstract Unit syncCall(REQ request, Callback<RESP> callback)

        Execute the call synchronously.

      • asyncCall

        @Deprecated(message = "using execute instead") abstract Unit asyncCall(REQ request, Callback<RESP> callback)

        Execute the call asynchronously.

      • asyncCall

        @Deprecated(message = "using execute instead") abstract Unit asyncCall(REQ request, Executor executor, Callback<RESP> callback)

        Execute the call asynchronously and use provided executor to invoke the callback