public final class WorkContinuationInstrumenter extends Object
WorkContinuationInstrumenter.Instrumenter
that will receive ad-hoc updates when work that has to be executed across
threads gets moved around.Modifier and Type | Class and Description |
---|---|
static interface |
WorkContinuationInstrumenter.Instrumenter
Allows to record work being continued across threads.
|
Constructor and Description |
---|
WorkContinuationInstrumenter() |
Modifier and Type | Method and Description |
---|---|
static void |
markFailure(Object token,
Throwable th) |
static Object |
onAskForWorkToContinue(String tag) |
static Object |
onBeginWorkContinuation(String tag,
Object token) |
static void |
onEndWorkContinuation(Object token) |
static Object |
onOfferWorkForContinuation(String tag) |
static Object |
onOfferWorkForContinuation(String tag,
Object token) |
static void |
provide(WorkContinuationInstrumenter.Instrumenter instrumenter)
Allows to provide an instrumenter that will receive work continuation updates.
|
public static void provide(WorkContinuationInstrumenter.Instrumenter instrumenter)
instrumenter
- that will receive the updates or null to reset.public static Object onOfferWorkForContinuation(String tag, Object token)
public static void onEndWorkContinuation(Object token)