Class Defaults

java.lang.Object
io.ably.lib.transport.Defaults

public class Defaults extends Object
  • Field Details

    • ABLY_PROTOCOL_VERSION

      public static final String ABLY_PROTOCOL_VERSION
      The level of compatibility with the Ably service that this SDK supports. Also referred to as the 'wire protocol version'. This value is presented as a string, as specified in G4a.

      spec: G4

      See Also:
    • ABLY_AGENT_VERSION

      public static final String ABLY_AGENT_VERSION
    • ABLY_PROTOCOL_VERSION_PARAM

      public static final String ABLY_PROTOCOL_VERSION_PARAM
      See Also:
    • ABLY_AGENT_PARAM

      public static final String ABLY_AGENT_PARAM
      See Also:
    • ABLY_PROTOCOL_VERSION_HEADER

      public static final String ABLY_PROTOCOL_VERSION_HEADER
      See Also:
    • ABLY_CLIENT_ID_HEADER

      public static final String ABLY_CLIENT_ID_HEADER
      See Also:
    • ABLY_AGENT_HEADER

      public static final String ABLY_AGENT_HEADER
      See Also:
    • HOST_FALLBACKS

      public static final String[] HOST_FALLBACKS
    • HOST_REST

      public static final String HOST_REST
      See Also:
    • HOST_REALTIME

      public static final String HOST_REALTIME
      See Also:
    • PORT

      public static final int PORT
      See Also:
    • TLS_PORT

      public static final int TLS_PORT
      See Also:
    • TIMEOUT_CONNECT

      public static int TIMEOUT_CONNECT
    • TIMEOUT_DISCONNECT

      public static int TIMEOUT_DISCONNECT
    • TIMEOUT_CHANNEL_RETRY

      public static int TIMEOUT_CHANNEL_RETRY
    • TIMEOUT_HTTP_OPEN

      public static int TIMEOUT_HTTP_OPEN
    • TIMEOUT_HTTP_REQUEST

      public static int TIMEOUT_HTTP_REQUEST
    • httpMaxRetryDuration

      public static int httpMaxRetryDuration
    • realtimeRequestTimeout

      public static long realtimeRequestTimeout
    • suspendedRetryTimeout

      public static long suspendedRetryTimeout
    • fallbackRetryTimeout

      public static long fallbackRetryTimeout
    • maxIdleInterval

      public static long maxIdleInterval
    • connectionStateTtl

      public static long connectionStateTtl
    • TRANSPORT

      public static final ITransport.Factory TRANSPORT
    • HTTP_MAX_RETRY_COUNT

      public static final int HTTP_MAX_RETRY_COUNT
      See Also:
    • HTTP_ASYNC_THREADPOOL_SIZE

      public static final int HTTP_ASYNC_THREADPOOL_SIZE
      See Also:
  • Constructor Details

    • Defaults

      public Defaults()
  • Method Details

    • getPort

      public static int getPort(ClientOptions options)
    • getEnvironmentFallbackHosts

      public static String[] getEnvironmentFallbackHosts(String environment)