public class ExecutorMetricsHandle extends Object implements AutoCloseable
Pre-executor execution actions:
Post-executor execution actions:
Constructor and Description |
---|
ExecutorMetricsHandle(LoadMonitor loadMonitor,
String executionId) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Takes care of necessary post facto steps involving the load monitor after the executor finishes
its execution.
|
void |
close(boolean shouldInvalidateMetrics)
Takes care of necessary post facto steps involving the load monitor after the executor finishes
its execution.
|
void |
handle()
Takes care of necessary prerequisite steps involving the load monitor before executing the
executor.
|
public ExecutorMetricsHandle(LoadMonitor loadMonitor, String executionId)
public void handle() throws InterruptedException
InterruptedException
- because it's engaging busy-wait operationspublic void close(boolean shouldInvalidateMetrics)
shouldInvalidateMetrics
- indicates whether metrics should be invalidatedpublic void close()
close
in interface AutoCloseable