Class ExecutorInstrumentation.Builder
java.lang.Object
graphql.execution.instrumentation.threadpools.ExecutorInstrumentation.Builder
- Enclosing class:
ExecutorInstrumentation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Consumer
<ExecutorInstrumentation.Action> (package private) Executor
(package private) Executor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionObserver
(Consumer<ExecutorInstrumentation.Action> actionObserver) This is really intended for testing but this consumer will be called during stages to indicate what is happening.build()
fetchExecutor
(Executor fetchExecutor) processingExecutor
(Executor processingExecutor)
-
Field Details
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fetchExecutor
-
processingExecutor
-
actionObserver
public ExecutorInstrumentation.Builder actionObserver(Consumer<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
-