Package graphql.execution
Interface EngineRunningObserver
-
@ExperimentalApi @NullMarked public 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
EngineRunningObserver.RunningState
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ENGINE_RUNNING_OBSERVER_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
runningStateChanged(ExecutionId executionId, GraphQLContext graphQLContext, EngineRunningObserver.RunningState runningState)
This will be called when the running state of the graphql-java engine changes.
-
-
-
Field Detail
-
ENGINE_RUNNING_OBSERVER_KEY
static final java.lang.String ENGINE_RUNNING_OBSERVER_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-