public static class ExecutorInstrumentation.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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) |
public ExecutorInstrumentation.Builder fetchExecutor(java.util.concurrent.Executor fetchExecutor)
public ExecutorInstrumentation.Builder processingExecutor(java.util.concurrent.Executor processingExecutor)
public ExecutorInstrumentation.Builder actionObserver(java.util.function.Consumer<graphql.execution.instrumentation.threadpools.ExecutorInstrumentation.Action> actionObserver)
actionObserver
- the observer codepublic ExecutorInstrumentation build()