Package pl.gsmservice.gateway
Class AsyncCommon
- java.lang.Object
-
- pl.gsmservice.gateway.AsyncCommon
-
public class AsyncCommon extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PingRequestBuilderping()Checks API availability and versionjava.util.concurrent.CompletableFuture<PingResponse>ping(java.util.Optional<Options> options)Checks API availability and versionjava.util.concurrent.CompletableFuture<PingResponse>pingDirect()Checks API availability and versionCommonsync()Switches to the sync SDK.
-
-
-
Method Detail
-
sync
public Common sync()
Switches to the sync SDK.- Returns:
- The sync SDK
-
ping
public PingRequestBuilder ping()
Checks API availability and version
Check the API connection and the current API availability status. Also you will get the current API version number. The method doesn't accept any parameters. Please use builder style:
PingResponse res = sdk.common().ping() .call();
As a successful result aPingResponseobject will be returned.- Returns:
- The async call builder
-
pingDirect
public java.util.concurrent.CompletableFuture<PingResponse> pingDirect()
Checks API availability and version
Check the API connection and the current API availability status. Also you will get the current API version number. The method doesn't accept any parameters. Please use builder style:
PingResponse res = sdk.common().ping() .call();
As a successful result aPingResponseobject will be returned.- Returns:
- CompletableFuture<PingResponse> - The async response
-
ping
public java.util.concurrent.CompletableFuture<PingResponse> ping(java.util.Optional<Options> options)
Checks API availability and version
Check the API connection and the current API availability status. Also you will get the current API version number. The method doesn't accept any parameters. Please use builder style:
PingResponse res = sdk.common().ping() .call();
As a successful result aPingResponseobject will be returned.- Parameters:
options- additional options- Returns:
- CompletableFuture<PingResponse> - The async response
-
-