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
Modifier and TypeFieldDescriptionprotected Duration
static final Duration
The default connection initialisation wait timeout.static final boolean
The default enabled value.static final String
The default GraphQL websocket path.protected boolean
static final String
The configuration name whether the GraphQL websocket is enabled.protected String
static final String
The configuration name of the GraphQL websocket path.static final String
The prefix to use for all GraphQL websocket configuration properties. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the connection initialisation wait timeout.getPath()
Returns the GraphQL websocket path.boolean
Returns whether GraphQL websocket is enabled.void
setConnectionInitWaitTimeout
(Duration connectionInitWaitTimeout) Sets the connection initialisation wait timeout.void
setEnabled
(boolean enabled) Sets whether GraphQL websocket is enabled.void
Sets 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:
isEnabled
in 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
-