Class GraphQLWsConfiguration
java.lang.Object
io.micronaut.configuration.graphql.ws.GraphQLWsConfiguration
- All Implemented Interfaces:
 io.micronaut.core.util.Toggleable
@ConfigurationProperties("graphql.graphql-ws")
public class GraphQLWsConfiguration
extends Object
implements io.micronaut.core.util.Toggleable
Configuration of the graphql-ws protocol support.
- Since:
 - 4.0
 - Author:
 - Jeremy Grelle
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Durationstatic final DurationThe default connection initialisation wait timeout.static final booleanThe default enabled value.static final StringThe default GraphQL websocket path.protected booleanstatic final StringThe configuration name whether the GraphQL websocket is enabled.protected Stringstatic final StringThe configuration name of the GraphQL websocket path.static final StringThe prefix to use for all GraphQL websocket configuration properties. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionReturns the connection initialisation wait timeout.getPath()Returns the GraphQL websocket path.booleanReturns whether GraphQL websocket is enabled.voidsetConnectionInitWaitTimeout(Duration connectionInitWaitTimeout) Sets the connection initialisation wait timeout.voidsetEnabled(boolean enabled) Sets whether GraphQL websocket is enabled.voidSets the GraphQL websocket path. 
- 
Field Details
- 
PREFIX
The prefix to use for all GraphQL websocket configuration properties.- See Also:
 
 - 
ENABLED_CONFIG
The configuration name whether the GraphQL websocket is enabled.- See Also:
 
 - 
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enabled value.- See Also:
 
 - 
PATH_CONFIG
The configuration name of the GraphQL websocket path.- See Also:
 
 - 
DEFAULT_PATH
The default GraphQL websocket path.- See Also:
 
 - 
DEFAULT_CONNECTION_TIMEOUT
The default connection initialisation wait timeout. - 
enabled
protected boolean enabled - 
path
 - 
connectionInitWaitTimeout
 
 - 
 - 
Constructor Details
- 
GraphQLWsConfiguration
public GraphQLWsConfiguration() 
 - 
 - 
Method Details
- 
isEnabled
public boolean isEnabled()Returns whether GraphQL websocket is enabled.- Specified by:
 isEnabledin interfaceio.micronaut.core.util.Toggleable- Returns:
 - whether GraphQL websocket is enabled
 
 - 
setEnabled
public void setEnabled(boolean enabled) Sets whether GraphQL websocket is enabled.- Parameters:
 enabled- whether GraphQL websocket is enabled
 - 
getPath
Returns the GraphQL websocket path.- Returns:
 - the GraphQL websocket path
 
 - 
setPath
Sets the GraphQL websocket path.- Parameters:
 path- the GraphQL websocket path
 - 
getConnectionInitWaitTimeout
Returns the connection initialisation wait timeout.- Returns:
 - the connection initialisation wait timeout
 
 - 
setConnectionInitWaitTimeout
Sets the connection initialisation wait timeout.- Parameters:
 connectionInitWaitTimeout- the connection initialisation wait timeout
 
 -