Class AsyncProxy


  • public class AsyncProxy
    extends java.lang.Object
    Routing API requests through StackOne directly to the underlying provider.
    • Method Detail

      • sync

        public Proxy sync()
        Switches to the sync SDK.
        Returns:
        The sync SDK
      • proxyRequest

        public java.util.concurrent.CompletableFuture<StackoneProxyRequestResponse> proxyRequest​(java.lang.String xAccountId,
                                                                                                 ProxyRequestBody proxyRequestBody)
        Proxy Request
        Parameters:
        xAccountId - The account identifier
        proxyRequestBody -
        Returns:
        CompletableFuture<StackoneProxyRequestResponse> - The async response
      • proxyRequest

        public java.util.concurrent.CompletableFuture<StackoneProxyRequestResponse> proxyRequest​(java.lang.String xAccountId,
                                                                                                 ProxyRequestBody proxyRequestBody,
                                                                                                 java.util.Optional<Options> options)
        Proxy Request
        Parameters:
        xAccountId - The account identifier
        proxyRequestBody -
        options - additional options
        Returns:
        CompletableFuture<StackoneProxyRequestResponse> - The async response