Uses of Interface
org.apache.logging.log4j.core.util.Clock
Package
Description
Provides Asynchronous Logger classes and interfaces for low-latency logging.
Log4j 2 helper classes.
-
Uses of Clock in org.apache.logging.log4j.core.async
Modifier and TypeMethodDescriptionvoid
RingBufferLogEventTranslator.setBasicValues
(AsyncLogger anAsyncLogger, String aLoggerName, Marker aMarker, String theFqcn, Level aLevel, Message msg, Throwable aThrowable, ThreadContext.ContextStack aContextStack, StackTraceElement aLocation, Clock aClock, NanoClock aNanoClock) void
RingBufferLogEvent.setValues
(AsyncLogger anAsyncLogger, String aLoggerName, Marker aMarker, String theFqcn, Level aLevel, Message msg, Throwable aThrowable, StringMap mutableContextData, ThreadContext.ContextStack aContextStack, long threadId, String threadName, int threadPriority, StackTraceElement aLocation, Clock clock, NanoClock nanoClock) -
Uses of Clock in org.apache.logging.log4j.core.time
Modifier and TypeInterfaceDescriptioninterface
Extension of theClock
interface that is able to provide more accurate time information than milliseconds since the epoch. -
Uses of Clock in org.apache.logging.log4j.core.util
Modifier and TypeClassDescriptionfinal class
Implementation of theClock
interface that tracks the time in a private long field that is updated by a background thread once every millisecond.final class
This Clock implementation is similar to CachedClock.final class
Implementation of theClock
interface that returns the system time.final class
Implementation of theClock
interface that returns the system time in millisecond granularity.Modifier and TypeMethodDescriptionstatic Clock
ClockFactory.getClock()
Returns aClock
instance depending on the value of system propertyClockFactory.PROPERTY_NAME
.