Interface Transport

All Superinterfaces:
java.lang.AutoCloseable, java.io.Closeable
All Known Implementing Classes:
RestClientTransport

public interface Transport
extends java.io.Closeable
The transport layer that allows ApiClients to send requests.
  • Method Summary

    Modifier and Type Method Description
    JsonpMapper jsonpMapper()  
    <RequestT,​ ResponseT,​ ErrorT>
    ResponseT
    performRequest​(RequestT request, Endpoint<RequestT,​ResponseT,​ErrorT> endpoint)  
    <RequestT,​ ResponseT,​ ErrorT>
    java.util.concurrent.CompletableFuture<ResponseT>
    performRequestAsync​(RequestT request, Endpoint<RequestT,​ResponseT,​ErrorT> endpoint)  

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • performRequest

      <RequestT,​ ResponseT,​ ErrorT> ResponseT performRequest​(RequestT request, Endpoint<RequestT,​ResponseT,​ErrorT> endpoint) throws java.io.IOException
      Throws:
      java.io.IOException
    • performRequestAsync

      <RequestT,​ ResponseT,​ ErrorT> java.util.concurrent.CompletableFuture<ResponseT> performRequestAsync​(RequestT request, Endpoint<RequestT,​ResponseT,​ErrorT> endpoint)
    • jsonpMapper

      JsonpMapper jsonpMapper()