Class GraphQLApolloWsKeepAlive
java.lang.Object
io.micronaut.configuration.graphql.ws.apollo.GraphQLApolloWsKeepAlive
@Deprecated(since="4.0")
@Singleton
@Requires(property="graphql.graphql-apollo-ws.keep-alive-enabled",
value="true",
defaultValue="true")
public class GraphQLApolloWsKeepAlive
extends Object
Deprecated.
The Apollo subscriptions-transport-ws protocol is deprecated and its usage should be replaced with the new graphql-ws implementation.
Used to send keep alive messages to the active sessions at a regular interval.
- Since:
- 1.3
- Author:
- Gerard Klijs
-
Constructor Summary
ConstructorDescriptionGraphQLApolloWsKeepAlive
(io.micronaut.websocket.WebSocketBroadcaster broadcaster, io.micronaut.configuration.graphql.ws.apollo.GraphQLApolloWsState state, GraphQLJsonSerializer graphQLJsonSerializer) Deprecated.Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Send ka messages to active sessions.
-
Constructor Details
-
GraphQLApolloWsKeepAlive
public GraphQLApolloWsKeepAlive(io.micronaut.websocket.WebSocketBroadcaster broadcaster, io.micronaut.configuration.graphql.ws.apollo.GraphQLApolloWsState state, GraphQLJsonSerializer graphQLJsonSerializer) Deprecated.Default constructor.- Parameters:
broadcaster
- theWebSocketBroadcaster
instancestate
- theGraphQLApolloWsState
instancegraphQLJsonSerializer
- theGraphQLJsonSerializer
instance
-
-
Method Details
-
keepAliveSender
@Scheduled(fixedDelay="${graphql.graphql-apollo-ws.keep-alive-interval:15s}") public void keepAliveSender()Deprecated.Send ka messages to active sessions.
-