Package graphql
Class GraphQLUnusualConfiguration.DataloaderConfig
- java.lang.Object
-
- graphql.GraphQLUnusualConfiguration.DataloaderConfig
-
- Enclosing class:
- GraphQLUnusualConfiguration
public static class GraphQLUnusualConfiguration.DataloaderConfig extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Duration
delayedDataLoaderBatchWindowSize()
GraphQLUnusualConfiguration.DataloaderConfig
delayedDataLoaderBatchWindowSize(java.time.Duration batchWindowSize)
Sets the batch window duration size for delayed DataLoaders.DelayedDataLoaderDispatcherExecutorFactory
delayedDataLoaderExecutorFactory()
GraphQLUnusualConfiguration.DataloaderConfig
delayedDataLoaderExecutorFactory(DelayedDataLoaderDispatcherExecutorFactory delayedDataLoaderDispatcherExecutorFactory)
Sets the instance ofDelayedDataLoaderDispatcherExecutorFactory
that is used to create theScheduledExecutorService
for the delayed DataLoader dispatching.GraphQLUnusualConfiguration.DataloaderConfig
enableDataLoaderChaining(boolean enable)
Enables the ability that chained DataLoaders are dispatched automatically.boolean
isDataLoaderChainingEnabled()
-
-
-
Method Detail
-
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
public java.time.Duration delayedDataLoaderBatchWindowSize()
- Returns:
- the batch window duration size for delayed DataLoaders.
-
delayedDataLoaderBatchWindowSize
@ExperimentalApi public GraphQLUnusualConfiguration.DataloaderConfig delayedDataLoaderBatchWindowSize(java.time.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
public DelayedDataLoaderDispatcherExecutorFactory 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.
-
-