Class GraphQLWSOptions
java.lang.Object
io.vertx.ext.web.handler.graphql.ws.GraphQLWSOptions
Options for configuring the
GraphQLWSHandler.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDefault maximum delay in milliseconds for the client to send theCONNECTION_INITmessage = 3000. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.GraphQLWSOptions(JsonObject json) Constructor to create options from JSON.GraphQLWSOptions(GraphQLWSOptions other) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionlongsetConnectionInitWaitTimeout(long connectionInitWaitTimeout) Set the maximum delay in milliseconds for the client to send theCONNECTION_INITmessage.toJson()
-
Field Details
-
DEFAULT_CONNECTION_INIT_WAIT_TIMEOUT
public static final long DEFAULT_CONNECTION_INIT_WAIT_TIMEOUTDefault maximum delay in milliseconds for the client to send theCONNECTION_INITmessage = 3000.- See Also:
-
-
Constructor Details
-
GraphQLWSOptions
public GraphQLWSOptions()Default constructor. -
GraphQLWSOptions
Copy constructor.- Parameters:
other- the options to copy
-
GraphQLWSOptions
Constructor to create options from JSON.- Parameters:
json- the JSON
-
-
Method Details
-
toJson
- Returns:
- a JSON representation of these options
-
getConnectionInitWaitTimeout
public long getConnectionInitWaitTimeout()- Returns:
- maximum delay in milliseconds for the client to send the
CONNECTION_INITmessage
-
setConnectionInitWaitTimeout
Set the maximum delay in milliseconds for the client to send theCONNECTION_INITmessage. Defaults to3000.- Parameters:
connectionInitWaitTimeout- delay in milliseconds- Returns:
- a reference to this, so the API can be used fluently
-