Package graphql
Class GraphQLUnusualConfiguration.DataloaderConfig
java.lang.Object
graphql.GraphQLUnusualConfiguration.DataloaderConfig
- Enclosing class:
GraphQLUnusualConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final GraphQLUnusualConfiguration.GraphQLContextConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondelayedDataLoaderBatchWindowSize
(Duration batchWindowSize) Sets the batch window duration size for delayed DataLoaders.delayedDataLoaderExecutorFactory
(DelayedDataLoaderDispatcherExecutorFactory delayedDataLoaderDispatcherExecutorFactory) Sets the instance ofDelayedDataLoaderDispatcherExecutorFactory
that is used to create theScheduledExecutorService
for the delayed DataLoader dispatching.enableDataLoaderChaining
(boolean enable) Enables the ability that chained DataLoaders are dispatched automatically.boolean
then()
-
Field Details
-
contextConfig
-
-
Method Details
-
isDataLoaderChainingEnabled
public boolean isDataLoaderChainingEnabled()- Returns:
- true if @defer and @stream behaviour is enabled for this execution.
-
enableDataLoaderChaining
@ExperimentalApi public GraphQLUnusualConfiguration.DataloaderConfig enableDataLoaderChaining(boolean enable) Enables the ability that chained DataLoaders are dispatched automatically. -
delayedDataLoaderBatchWindowSize
- Returns:
- the batch window duration size for delayed DataLoaders.
-
delayedDataLoaderBatchWindowSize
@ExperimentalApi public GraphQLUnusualConfiguration.DataloaderConfig delayedDataLoaderBatchWindowSize(Duration batchWindowSize) Sets the batch window duration size for delayed DataLoaders. That is for DataLoaders, that are not batched as part of the normal per level dispatching, because they were created after the level was already dispatched. -
delayedDataLoaderExecutorFactory
- Returns:
- the instance of
DelayedDataLoaderDispatcherExecutorFactory
that is used to create theScheduledExecutorService
for the delayed DataLoader dispatching.
-
delayedDataLoaderExecutorFactory
@ExperimentalApi public GraphQLUnusualConfiguration.DataloaderConfig delayedDataLoaderExecutorFactory(DelayedDataLoaderDispatcherExecutorFactory delayedDataLoaderDispatcherExecutorFactory) Sets the instance ofDelayedDataLoaderDispatcherExecutorFactory
that is used to create theScheduledExecutorService
for the delayed DataLoader dispatching. -
then
- Returns:
- an element that allows you to chain multiple configuration elements
-