public class ClientOptions extends Auth.AuthOptions
| Modifier and Type | Field and Description |
|---|---|
boolean |
autoConnect
If false, suppresses the automatic initiation of a connection when the library is instanced.
|
java.lang.String |
clientId
The id of the client represented by this instance.
|
boolean |
echoMessages
If false, suppresses messages originating from this connection being echoed back
on the same connection.
|
java.util.Map<java.lang.String,java.lang.String> |
headers
FIXME: unused
|
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.
|
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.
|
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.
|
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, authParams, authUrl, key, queryTime, token, tokenDetails| Constructor and Description |
|---|
ClientOptions()
Default constructor
|
ClientOptions(java.lang.String key)
Construct an options with a single key string.
|
mergepublic 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 ClientOptions()
public ClientOptions(java.lang.String key)
throws AblyException
key: - the key stringAblyException - if the key is not in a valid format