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 properties for using a web socket with GraphQL.
- Since:
- 1.3
- Author:
- Gerard Klijs
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanThe default enabled value.static final booleanThe default keep alive enabled value.static final StringThe default keep alive interval value.static final StringThe default GraphQL websocket path.protected booleanstatic final StringThe configuration name whether the GraphQL websocket is enabled.static final StringThe configuration name of the GraphQL keep alive enabled path..static final StringThe configuration name of the GraphQL keep alive interval path..protected booleanprotected Stringprotected 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 GraphQL keep alive interval in seconds.getPath()Returns the GraphQL websocket path.booleanReturns whether GraphQL websocket is enabled.booleanReturns whether GraphQL websocket keep alive is enabled.
-
Field Details
-
PREFIX
The prefix to use for all GraphQL websocket configuration properties.- See Also:
-
ENABLED
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
The configuration name of the GraphQL websocket path.- See Also:
-
DEFAULT_PATH
The default GraphQL websocket path.- See Also:
-
KEEP_ALIVE_ENABLED
The configuration name of the GraphQL keep alive enabled path..- See Also:
-
DEFAULT_KEEP_ALIVE_ENABLED
public static final boolean DEFAULT_KEEP_ALIVE_ENABLEDThe default keep alive enabled value.- See Also:
-
KEEP_ALIVE_INTERVAL
The configuration name of the GraphQL keep alive interval path..- See Also:
-
DEFAULT_KEEP_ALIVE_INTERVAL
The default keep alive interval value.- See Also:
-
enabled
protected boolean enabled -
path
-
keepAliveEnabled
protected boolean keepAliveEnabled -
keepAliveInterval
-
-
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
-
getPath
Returns the GraphQL websocket path.- Returns:
- the GraphQL websocket path
-
isKeepAliveEnabled
public boolean isKeepAliveEnabled()Returns whether GraphQL websocket keep alive is enabled.- Returns:
- whether GraphQL websocket keep alive is enabled
-
getKeepAliveInterval
Returns the GraphQL keep alive interval in seconds.- Returns:
- the GraphQL keep alive interval in seconds
-