public class GraphQLWSOptions extends Object
GraphQLWSHandler
.Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_CONNECTION_INIT_WAIT_TIMEOUT
Default maximum delay in milliseconds for the client to send the
CONNECTION_INIT message = 3000. |
Constructor and Description |
---|
GraphQLWSOptions()
Default constructor.
|
GraphQLWSOptions(GraphQLWSOptions other)
Copy constructor.
|
GraphQLWSOptions(JsonObject json)
Constructor to create options from JSON.
|
Modifier and Type | Method and Description |
---|---|
long |
getConnectionInitWaitTimeout() |
GraphQLWSOptions |
setConnectionInitWaitTimeout(long connectionInitWaitTimeout)
Set the maximum delay in milliseconds for the client to send the
CONNECTION_INIT message. |
JsonObject |
toJson() |
public static final long DEFAULT_CONNECTION_INIT_WAIT_TIMEOUT
CONNECTION_INIT
message = 3000.public GraphQLWSOptions()
public GraphQLWSOptions(GraphQLWSOptions other)
other
- the options to copypublic GraphQLWSOptions(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public long getConnectionInitWaitTimeout()
CONNECTION_INIT
messagepublic GraphQLWSOptions setConnectionInitWaitTimeout(long connectionInitWaitTimeout)
CONNECTION_INIT
message.
Defaults to 3000
.connectionInitWaitTimeout
- delay in millisecondsCopyright © 2024 Eclipse. All rights reserved.