Interface Connector<T>

  • Type Parameters:
    T -
    All Known Implementing Classes:
    ConnectorServiceV1.AsyncJobReader

    public interface Connector<T>
    An interface that defines the basic interface for calling a Cognite API endpoint with a request and consuming the response.
    • Method Detail

      • execute

        ResponseItems<T> execute​(Request requestParameters)
                          throws Exception
        Executes a request against the api endpoint. This method will block until the request is completed and the response can be consumed by the client.
        Parameters:
        requestParameters -
        Returns:
        Throws:
        Exception
      • executeAsync

        CompletableFuture<ResponseItems<T>> executeAsync​(Request requestParameters)
                                                  throws Exception
        Executes a request against the api endpoint on a separate thread. The response is wrapped in a future that is returned to the client immediately.
        Parameters:
        requestParameters -
        Returns:
        Throws:
        Exception