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
SeeDataLoaderDispatchingContextKeys
for how to set it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.ScheduledExecutorService
createExecutor(ExecutionId executionId, GraphQLContext graphQLContext)
Called once per execution to create theScheduledExecutorService
for the delayed DataLoader dispatching.
-
-
-
Method Detail
-
createExecutor
java.util.concurrent.ScheduledExecutorService createExecutor(ExecutionId executionId, GraphQLContext graphQLContext)
Called once per execution to create theScheduledExecutorService
for the delayed DataLoader dispatching. Will only called if needed, i.e. if there are delayed DataLoaders.- Parameters:
executionId
-graphQLContext
-- Returns:
-
-