Class ExecutorInstrumentation.Builder
- java.lang.Object
-
- graphql.execution.instrumentation.threadpools.ExecutorInstrumentation.Builder
-
- Enclosing class:
- ExecutorInstrumentation
public static class ExecutorInstrumentation.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutorInstrumentation.Builder
actionObserver(java.util.function.Consumer<graphql.execution.instrumentation.threadpools.ExecutorInstrumentation.Action> actionObserver)
This is really intended for testing but this consumer will be called during stages to indicate what is happening.ExecutorInstrumentation
build()
ExecutorInstrumentation.Builder
fetchExecutor(java.util.concurrent.Executor fetchExecutor)
ExecutorInstrumentation.Builder
processingExecutor(java.util.concurrent.Executor processingExecutor)
-
-
-
Method Detail
-
fetchExecutor
public ExecutorInstrumentation.Builder fetchExecutor(java.util.concurrent.Executor fetchExecutor)
-
processingExecutor
public ExecutorInstrumentation.Builder processingExecutor(java.util.concurrent.Executor processingExecutor)
-
actionObserver
public ExecutorInstrumentation.Builder actionObserver(java.util.function.Consumer<graphql.execution.instrumentation.threadpools.ExecutorInstrumentation.Action> actionObserver)
This is really intended for testing but this consumer will be called during stages to indicate what is happening.- Parameters:
actionObserver
- the observer code- Returns:
- this builder
-
build
public ExecutorInstrumentation build()
-
-