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 java.lang.Object implements io.micronaut.core.util.ToggleableConfiguration properties for using a web socket with GraphQL.- Since:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_ENABLEDThe default enabled value.static booleanDEFAULT_KEEP_ALIVE_ENABLEDThe default keep alive enabled value.static java.lang.StringDEFAULT_KEEP_ALIVE_INTERVALThe default keep alive interval value.static java.lang.StringDEFAULT_PATHThe default GraphQL websocket path.protected booleanenabledstatic java.lang.StringENABLEDThe configuration name whether the GraphQL websocket is enabled.static java.lang.StringKEEP_ALIVE_ENABLEDThe configuration name of the GraphQL keep alive enabled path..static java.lang.StringKEEP_ALIVE_INTERVALThe configuration name of the GraphQL keep alive interval path..protected booleankeepAliveEnabledprotected java.lang.StringkeepAliveIntervalprotected java.lang.Stringpathstatic java.lang.StringPATHThe configuration name of the GraphQL websocket path.static java.lang.StringPREFIXThe prefix to use for all GraphQL websocket configuration properties.
-
Constructor Summary
Constructors Constructor Description GraphQLWsConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetKeepAliveInterval()Returns the GraphQL keep alive interval in seconds.java.lang.StringgetPath()Returns the GraphQL websocket path.booleanisEnabled()Returns whether GraphQL websocket is enabled.booleanisKeepAliveEnabled()Returns whether GraphQL websocket keep alive is enabled.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
The prefix to use for all GraphQL websocket configuration properties.- See Also:
- Constant Field Values
-
ENABLED
public static final java.lang.String ENABLED
The configuration name whether the GraphQL websocket is enabled.- See Also:
- Constant Field Values
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED
The default enabled value.- See Also:
- Constant Field Values
-
PATH
public static final java.lang.String PATH
The configuration name of the GraphQL websocket path.- See Also:
- Constant Field Values
-
DEFAULT_PATH
public static final java.lang.String DEFAULT_PATH
The default GraphQL websocket path.- See Also:
- Constant Field Values
-
KEEP_ALIVE_ENABLED
public static final java.lang.String KEEP_ALIVE_ENABLED
The configuration name of the GraphQL keep alive enabled path..- See Also:
- Constant Field Values
-
DEFAULT_KEEP_ALIVE_ENABLED
public static final boolean DEFAULT_KEEP_ALIVE_ENABLED
The default keep alive enabled value.- See Also:
- Constant Field Values
-
KEEP_ALIVE_INTERVAL
public static final java.lang.String KEEP_ALIVE_INTERVAL
The configuration name of the GraphQL keep alive interval path..- See Also:
- Constant Field Values
-
DEFAULT_KEEP_ALIVE_INTERVAL
public static final java.lang.String DEFAULT_KEEP_ALIVE_INTERVAL
The default keep alive interval value.- See Also:
- Constant Field Values
-
enabled
protected boolean enabled
-
path
protected java.lang.String path
-
keepAliveEnabled
protected boolean keepAliveEnabled
-
keepAliveInterval
protected java.lang.String keepAliveInterval
-
-
Method Detail
-
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
public java.lang.String 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
public java.lang.String getKeepAliveInterval()
Returns the GraphQL keep alive interval in seconds.- Returns:
- the GraphQL keep alive interval in seconds
-
-