public interface InvocationInstrumenter
| Modifier and Type | Field and Description |
|---|---|
static InvocationInstrumenter |
NOOP
Noop implementation if
InvocationInstrumenter. |
| Modifier and Type | Method and Description |
|---|---|
default void |
afterInvocation()
After call defaults to not enforcing cleanup.
|
void |
afterInvocation(boolean cleanup)
After call.
|
void |
beforeInvocation()
Before call.
|
static InvocationInstrumenter |
combine(Collection<InvocationInstrumenter> invocationInstrumenters)
Combines multiple instrumenters into one.
|
static <V> Callable<V> |
instrument(Callable<V> callable,
Collection<InvocationInstrumenter> invocationInstrumenters)
Wrappers
Callable with instrumentation invocations. |
static <V> Callable<V> |
instrument(Callable<V> callable,
InvocationInstrumenter invocationInstrumenter)
Wrappers
Callable with instrumentation invocations. |
static Runnable |
instrument(Runnable runnable,
Collection<InvocationInstrumenter> invocationInstrumenters)
Wrappers
Runnable with instrumentation invocations. |
static Runnable |
instrument(Runnable runnable,
InvocationInstrumenter invocationInstrumenter)
Wrappers
Runnable with instrumentation invocations. |
static final InvocationInstrumenter NOOP
InvocationInstrumenter.void beforeInvocation()
void afterInvocation(boolean cleanup)
cleanup - Whether to enforce cleanupdefault void afterInvocation()
@Nonnull static InvocationInstrumenter combine(Collection<InvocationInstrumenter> invocationInstrumenters)
invocationInstrumenters - instrumenters to combine@Nonnull static Runnable instrument(@Nonnull Runnable runnable, Collection<InvocationInstrumenter> invocationInstrumenters)
Runnable with instrumentation invocations.runnable - Runnable to be wrappedinvocationInstrumenters - instrumenters to be used@Nonnull static <V> Callable<V> instrument(@Nonnull Callable<V> callable, Collection<InvocationInstrumenter> invocationInstrumenters)
Callable with instrumentation invocations.V - callable generic paramcallable - Callable to be wrappedinvocationInstrumenters - instrumenters to be used@Nonnull static Runnable instrument(@Nonnull Runnable runnable, InvocationInstrumenter invocationInstrumenter)
Runnable with instrumentation invocations.runnable - Runnable to be wrappedinvocationInstrumenter - instrumenter to be used@Nonnull static <V> Callable<V> instrument(@Nonnull Callable<V> callable, InvocationInstrumenter invocationInstrumenter)
Callable with instrumentation invocations.V - callable generic paramcallable - Callable to be wrappedinvocationInstrumenter - instrumenter to be used