Class AsyncCommon


  • public class AsyncCommon
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PingRequestBuilder ping()
      Checks API availability and version
      java.util.concurrent.CompletableFuture<PingResponse> ping​(java.util.Optional<Options> options)
      Checks API availability and version
      java.util.concurrent.CompletableFuture<PingResponse> pingDirect()
      Checks API availability and version
      Common sync()
      Switches to the sync SDK.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 a PingResponse object 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 a PingResponse object 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 a PingResponse object will be returned.
        Parameters:
        options - additional options
        Returns:
        CompletableFuture<PingResponse> - The async response