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.
    • 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 execution
        graphQLContext - the graphql context