Class JwtUtil.TraceBuffer

java.lang.Object
org.elasticsearch.xpack.security.authc.jwt.JwtUtil.TraceBuffer
All Implemented Interfaces:
AutoCloseable
Enclosing class:
JwtUtil

public static class JwtUtil.TraceBuffer extends Object implements AutoCloseable
Helper class to consolidate multiple trace level statements to a single trace statement with lazy evaluation. If trace level is not enabled, then no work is performed. This class is not threadsafe and is not intended for a long lifecycle.
  • Constructor Details

    • TraceBuffer

      public TraceBuffer(org.apache.logging.log4j.Logger logger)
  • Method Details

    • append

      public void append(String s, Object... args)
    • flush

      public void flush()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable