Module org.elasticsearch.security
Class JwtUtil.TraceBuffer
java.lang.Object
org.elasticsearch.xpack.security.authc.jwt.JwtUtil.TraceBuffer
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
JwtUtil
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
TraceBuffer
public TraceBuffer(org.apache.logging.log4j.Logger logger)
-
-
Method Details
-
append
-
flush
public void flush() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-