public class ApolloWSOptions extends Object
ApolloWSHandler
.Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_KEEP_ALIVE
Default interval in milliseconds to send
KEEPALIVE messages to all clients = 30000. |
Constructor and Description |
---|
ApolloWSOptions()
Default constructor.
|
ApolloWSOptions(ApolloWSOptions other)
Copy constructor.
|
ApolloWSOptions(JsonObject json)
Constructor to create options from JSON.
|
Modifier and Type | Method and Description |
---|---|
long |
getKeepAlive() |
ApolloWSOptions |
setKeepAlive(long keepAlive)
Set the interval in milliseconds to send
KEEPALIVE messages to all clients. |
JsonObject |
toJson() |
public static final long DEFAULT_KEEP_ALIVE
KEEPALIVE
messages to all clients = 30000.public ApolloWSOptions()
public ApolloWSOptions(ApolloWSOptions other)
other
- the options to copypublic ApolloWSOptions(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public long getKeepAlive()
KEEPALIVE
messages to all clientspublic ApolloWSOptions setKeepAlive(long keepAlive)
KEEPALIVE
messages to all clients. Defaults to 30000
.keepAlive
- interval in millisecondsCopyright © 2021 Eclipse. All rights reserved.