Class UndertowActiveHandlers

java.lang.Object
io.opentelemetry.javaagent.bootstrap.undertow.UndertowActiveHandlers

public final class UndertowActiveHandlers extends Object
Helper container for keeping track of request processing state in undertow.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    decrementAndGet(io.opentelemetry.context.Context context)
    Decrement counter.
    static void
    increment(io.opentelemetry.context.Context context)
    Increment counter.
    static io.opentelemetry.context.Context
    init(io.opentelemetry.context.Context context, int initialValue)
    Attach to context.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • init

      public static io.opentelemetry.context.Context init(io.opentelemetry.context.Context context, int initialValue)
      Attach to context.
      Parameters:
      context - server context
      initialValue - 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