Class UndertowActiveHandlers
java.lang.Object
io.opentelemetry.javaagent.bootstrap.undertow.UndertowActiveHandlers
Helper container for keeping track of request processing state in undertow.
-
Method Summary
Modifier and TypeMethodDescriptionstatic intdecrementAndGet(io.opentelemetry.context.Context context) Decrement counter.static voidincrement(io.opentelemetry.context.Context context) Increment counter.static io.opentelemetry.context.Contextinit(io.opentelemetry.context.Context context, int initialValue) Attach to context.
-
Method Details
-
init
public static io.opentelemetry.context.Context init(io.opentelemetry.context.Context context, int initialValue) Attach to context.- Parameters:
context- server contextinitialValue- initial value for counter- Returns:
- new context
-
increment
public static void increment(io.opentelemetry.context.Context context) Increment counter.- Parameters:
context- server context
-
decrementAndGet
public static int decrementAndGet(io.opentelemetry.context.Context context) Decrement counter.- Parameters:
context- server context- Returns:
- value of counter after decrementing it
-