Interface DelayedDataLoaderDispatcherExecutorFactory

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @ExperimentalApi
    @NullMarked
    @FunctionalInterface
    public interface DelayedDataLoaderDispatcherExecutorFactory
    See DataLoaderDispatchingContextKeys for how to set it.
    • Method Detail

      • createExecutor

        java.util.concurrent.ScheduledExecutorService createExecutor​(ExecutionId executionId,
                                                                     GraphQLContext graphQLContext)
        Called once per execution to create the ScheduledExecutorService for the delayed DataLoader dispatching. Will only called if needed, i.e. if there are delayed DataLoaders.
        Parameters:
        executionId -
        graphQLContext -
        Returns: