Class UndertowActiveHandlers


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

      • 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