public class ClientOptions extends Auth.AuthOptions
Modifier and Type | Field and Description |
---|---|
int |
asyncHttpThreadpoolSize
Allows the caller to specify a non-default size for the asyncHttp threadpool
|
boolean |
autoConnect
If false, suppresses the automatic initiation of a connection when the library is instanced.
|
int |
channelRetryTimeout
Channel reattach timeout
Spec: RTL13b
|
java.lang.String |
clientId
The id of the client represented by this instance.
|
Auth.TokenParams |
defaultTokenParams
When a TokenParams object is provided, it will override
the client library defaults described in TokenParams
Spec: TO3j11
|
boolean |
echoMessages
If false, suppresses messages originating from this connection being echoed back
on the same connection.
|
java.lang.String |
environment
For development environments only; allows a non-default Ably environment
to be used such as 'sandbox'.
|
java.lang.String[] |
fallbackHosts
Spec: TO3k6,RSC15a,RSC15b,RTN17b list of custom fallback hosts.
|
boolean |
fallbackHostsUseDefault
Spec: TO3k7 Set to use default fallbackHosts even when overriding
environment or restHost/realtimeHost
|
long |
fallbackRetryTimeout
Spec: TO3l10
|
java.util.Map<java.lang.String,java.lang.String> |
headers
FIXME: unused
|
int |
httpMaxRetryCount
Max number of fallback hosts to use as a fallback when an HTTP request to
the primary host is unreachable or indicates that it is unserviceable
|
int |
httpOpenTimeout
Spec: TO313
|
int |
httpRequestTimeout
Spec: TO314
|
boolean |
idempotentRestPublishing
Spec: TO3n
|
Log.LogHandler |
logHandler
Log handler: allows the client to intercept log messages and handle them in a
client-specific way.
|
int |
logLevel
Log level; controls the level of verbosity of log messages from the library.
|
int |
port
For development environments only; allows a non-default Ably port to be specified.
|
ProxyOptions |
proxy
Proxy settings
|
boolean |
pushFullWait
Whether to tell Ably to wait for push REST requests to fully wait for all their effects
before responding.
|
boolean |
queueMessages
If false, suppresses the default queueing of messages when connection states that
anticipate imminent connection (connecting and disconnected).
|
java.lang.String |
realtimeHost
For development environments only; allows a non-default Ably host to be specified for
websocket connections.
|
long |
realtimeRequestTimeout
Spec: DF1b
|
java.lang.String |
recover
A connection recovery string, specified by a client when initialising the library
with the intention of inheriting the state of an earlier connection.
|
java.lang.String |
restHost
For development environments only; allows a non-default Ably host to be specified.
|
boolean |
tls
Encrypted transport: if true, TLS will be used for all connections (whether REST/HTTP
or Realtime WebSocket or Comet connections).
|
int |
tlsPort
For development environments only; allows a non-default Ably TLS port to be specified.
|
Param[] |
transportParams
Additional parameters to be sent in the querystring when initiating a realtime connection
|
boolean |
useBinaryProtocol
If false, forces the library to use the JSON encoding for REST and Realtime operations,
instead of the default binary msgpack encoding.
|
authCallback, authHeaders, authMethod, authParams, authUrl, key, queryTime, token, tokenDetails, useTokenAuth
Constructor and Description |
---|
ClientOptions()
Default constructor
|
ClientOptions(java.lang.String key)
Construct an options with a single key string.
|
public java.lang.String clientId
public int logLevel
public Log.LogHandler logHandler
public boolean tls
public java.util.Map<java.lang.String,java.lang.String> headers
public java.lang.String restHost
public java.lang.String realtimeHost
public int port
public int tlsPort
public boolean autoConnect
public boolean useBinaryProtocol
public boolean queueMessages
public boolean echoMessages
public java.lang.String recover
public ProxyOptions proxy
public java.lang.String environment
public boolean idempotentRestPublishing
public int httpOpenTimeout
public int httpRequestTimeout
public int httpMaxRetryCount
public long realtimeRequestTimeout
public java.lang.String[] fallbackHosts
public boolean fallbackHostsUseDefault
public long fallbackRetryTimeout
public Auth.TokenParams defaultTokenParams
public int channelRetryTimeout
public Param[] transportParams
public int asyncHttpThreadpoolSize
public boolean pushFullWait
public ClientOptions()
public ClientOptions(java.lang.String key) throws AblyException
key:
- the key stringAblyException
- if the key is not in a valid format