Class ClarifaiRequest.Impl<T>

    • Method Detail

      • executeSync

        @NotNull
        public @NotNull ClarifaiResponse<T> executeSync()
        Description copied from interface: ClarifaiRequest
        Blocks this thread until a response is received, successful or not.
        Returns:
        the response retrieved by invoking this request
      • executeAsync

        public void executeAsync​(@Nullable
                                 @Nullable ClarifaiRequest.Callback<T> callback)
        Description copied from interface: ClarifaiRequest
        Executes the given request in a background process, and then returns the result to this one via the callback.
        Parameters:
        callback - the object that will be notified with the results create the request, successful or not.