Class AsyncProxy
- java.lang.Object
-
- com.stackone.stackone_client_java.AsyncProxy
-
public class AsyncProxy extends java.lang.ObjectRouting API requests through StackOne directly to the underlying provider.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackoneProxyRequestRequestBuilderproxyRequest()Proxy Requestjava.util.concurrent.CompletableFuture<StackoneProxyRequestResponse>proxyRequest(java.lang.String xAccountId, ProxyRequestBody proxyRequestBody)Proxy Requestjava.util.concurrent.CompletableFuture<StackoneProxyRequestResponse>proxyRequest(java.lang.String xAccountId, ProxyRequestBody proxyRequestBody, java.util.Optional<Options> options)Proxy RequestProxysync()Switches to the sync SDK.
-
-
-
Method Detail
-
sync
public Proxy sync()
Switches to the sync SDK.- Returns:
- The sync SDK
-
proxyRequest
public StackoneProxyRequestRequestBuilder proxyRequest()
Proxy Request- Returns:
- The async call builder
-
proxyRequest
public java.util.concurrent.CompletableFuture<StackoneProxyRequestResponse> proxyRequest(java.lang.String xAccountId, ProxyRequestBody proxyRequestBody)
Proxy Request- Parameters:
xAccountId- The account identifierproxyRequestBody-- 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 identifierproxyRequestBody-options- additional options- Returns:
CompletableFuture<StackoneProxyRequestResponse>- The async response
-
-