Package io.ably.lib.transport
Class Defaults
java.lang.Object
io.ably.lib.transport.Defaults
public class Defaults
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringABLY_AGENT_HEADERstatic java.lang.StringABLY_AGENT_PARAMstatic java.lang.StringABLY_AGENT_VERSIONstatic java.lang.StringABLY_VERSIONThe level of compatibility with the Ably service that this SDK supports, also referred to as the 'wire protocol version'.static java.lang.StringABLY_VERSION_HEADERstatic floatABLY_VERSION_NUMBERstatic java.lang.StringABLY_VERSION_PARAMstatic longconnectionStateTtlstatic longfallbackRetryTimeoutstatic java.lang.String[]HOST_FALLBACKSstatic java.lang.StringHOST_REALTIMEstatic java.lang.StringHOST_RESTstatic intHTTP_ASYNC_THREADPOOL_SIZEstatic intHTTP_MAX_RETRY_COUNTstatic longmaxIdleIntervalstatic intPORTstatic longrealtimeRequestTimeoutstatic intTIMEOUT_CHANNEL_RETRYstatic intTIMEOUT_CONNECTstatic intTIMEOUT_DISCONNECTstatic intTIMEOUT_HTTP_OPENstatic intTIMEOUT_HTTP_REQUESTstatic intTLS_PORTstatic ITransport.FactoryTRANSPORT -
Constructor Summary
Constructors Constructor Description Defaults() -
Method Summary
Modifier and Type Method Description static java.lang.String[]getEnvironmentFallbackHosts(java.lang.String environment)static intgetPort(ClientOptions options)
-
Field Details
-
ABLY_VERSION_NUMBER
public static final float ABLY_VERSION_NUMBER- See Also:
- Constant Field Values
-
ABLY_VERSION
public static final java.lang.String ABLY_VERSIONThe 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. -
ABLY_AGENT_VERSION
public static final java.lang.String ABLY_AGENT_VERSION -
ABLY_VERSION_PARAM
public static final java.lang.String ABLY_VERSION_PARAM- See Also:
- Constant Field Values
-
ABLY_AGENT_PARAM
public static final java.lang.String ABLY_AGENT_PARAM- See Also:
- Constant Field Values
-
ABLY_VERSION_HEADER
public static final java.lang.String ABLY_VERSION_HEADER- See Also:
- Constant Field Values
-
ABLY_AGENT_HEADER
public static final java.lang.String ABLY_AGENT_HEADER- See Also:
- Constant Field Values
-
HOST_FALLBACKS
public static final java.lang.String[] HOST_FALLBACKS -
HOST_REST
public static final java.lang.String HOST_REST- See Also:
- Constant Field Values
-
HOST_REALTIME
public static final java.lang.String HOST_REALTIME- See Also:
- Constant Field Values
-
PORT
public static final int PORT- See Also:
- Constant Field Values
-
TLS_PORT
public static final int TLS_PORT- See Also:
- Constant Field Values
-
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 -
realtimeRequestTimeout
public static long realtimeRequestTimeout -
fallbackRetryTimeout
public static long fallbackRetryTimeout -
maxIdleInterval
public static long maxIdleInterval -
connectionStateTtl
public static long connectionStateTtl -
TRANSPORT
-
HTTP_MAX_RETRY_COUNT
public static final int HTTP_MAX_RETRY_COUNT- See Also:
- Constant Field Values
-
HTTP_ASYNC_THREADPOOL_SIZE
public static final int HTTP_ASYNC_THREADPOOL_SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
Defaults
public Defaults()
-
-
Method Details
-
getPort
-
getEnvironmentFallbackHosts
public static java.lang.String[] getEnvironmentFallbackHosts(java.lang.String environment)
-