Interface InstrumentationState
-
- All Known Implementing Classes:
DataLoaderDispatcherInstrumentationState
,TracingSupport
@PublicSpi public interface InstrumentationState
AnInstrumentation
implementation can create this as a stateful object that is then passed to each instrumentation method, allowing state to be passed down with the request execution
-
-
Method Summary
Static Methods Modifier and Type Method Description static <T extends InstrumentationState>
TofState(InstrumentationState rawState)
This helper method allows you to cast fromInstrumentationState
to a custom classes more easily.
-
-
-
Method Detail
-
ofState
static <T extends InstrumentationState> T ofState(InstrumentationState rawState)
This helper method allows you to cast fromInstrumentationState
to a custom classes more easily.- Type Parameters:
T
- for two- Parameters:
rawState
- the raw InstrumentationState- Returns:
- a cast custom InstrumentationState
-
-