Package graphql.execution
Interface EngineRunningObserver
This class lets you observe the running state of the graphql-java engine. As it processes and dispatches graphql fields,
the engine moves in and out of a running and not running state. As it does this, the callback is called with information telling you the current
state.
If the engine is cancelled via ExecutionInput.cancel()
then the observer will also be called to indicate that.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
runningStateChanged
(ExecutionId executionId, GraphQLContext graphQLContext, EngineRunningObserver.RunningState runningState) This will be called when the running state of the graphql-java engine changes.
-
Field Details
-
ENGINE_RUNNING_OBSERVER_KEY
- See Also:
-
-
Method Details
-
runningStateChanged
void runningStateChanged(ExecutionId executionId, GraphQLContext graphQLContext, EngineRunningObserver.RunningState runningState) This will be called when the running state of the graphql-java engine changes.- Parameters:
executionId
- the id of the current executiongraphQLContext
- the graphql context
-