Class GraphQLWSOptions
- java.lang.Object
 - 
- io.vertx.ext.web.handler.graphql.ws.GraphQLWSOptions
 
 
- 
public class GraphQLWSOptions extends Object
Options for configuring theGraphQLWSHandler. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_CONNECTION_INIT_WAIT_TIMEOUTDefault maximum delay in milliseconds for the client to send theCONNECTION_INITmessage = 3000. 
- 
Constructor Summary
Constructors Constructor Description GraphQLWSOptions()Default constructor.GraphQLWSOptions(JsonObject json)Constructor to create options from JSON.GraphQLWSOptions(GraphQLWSOptions other)Copy constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetConnectionInitWaitTimeout()GraphQLWSOptionssetConnectionInitWaitTimeout(long connectionInitWaitTimeout)Set the maximum delay in milliseconds for the client to send theCONNECTION_INITmessage.JsonObjecttoJson() 
 - 
 
- 
- 
Field Detail
- 
DEFAULT_CONNECTION_INIT_WAIT_TIMEOUT
public static final long DEFAULT_CONNECTION_INIT_WAIT_TIMEOUT
Default maximum delay in milliseconds for the client to send theCONNECTION_INITmessage = 3000.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
GraphQLWSOptions
public GraphQLWSOptions()
Default constructor. 
- 
GraphQLWSOptions
public GraphQLWSOptions(GraphQLWSOptions other)
Copy constructor.- Parameters:
 other- the options to copy
 
- 
GraphQLWSOptions
public GraphQLWSOptions(JsonObject json)
Constructor to create options from JSON.- Parameters:
 json- the JSON
 
 - 
 
- 
Method Detail
- 
toJson
public JsonObject 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
public GraphQLWSOptions setConnectionInitWaitTimeout(long connectionInitWaitTimeout)
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
 
 
 - 
 
 -