Uses of Interface
org.apache.logging.log4j.core.util.Clock
-
Packages that use Clock Package Description org.apache.logging.log4j.core.appender.rolling.action Support classes for the Rolling File Appender.org.apache.logging.log4j.core.async Provides Asynchronous Logger classes and interfaces for low-latency logging.org.apache.logging.log4j.core.filter Log4j 2 Filter support.org.apache.logging.log4j.core.impl Log4j 2 private implementation classes.org.apache.logging.log4j.core.time org.apache.logging.log4j.core.time.internal org.apache.logging.log4j.core.util Log4j 2 helper classes. -
-
Uses of Clock in org.apache.logging.log4j.core.appender.rolling.action
Fields in org.apache.logging.log4j.core.appender.rolling.action declared as Clock Modifier and Type Field Description private static Clock
IfLastModified. CLOCK
-
Uses of Clock in org.apache.logging.log4j.core.async
Fields in org.apache.logging.log4j.core.async declared as Clock Modifier and Type Field Description private Clock
RingBufferLogEventTranslator. clock
private static Clock
AsyncLogger. CLOCK
Methods in org.apache.logging.log4j.core.async with parameters of type Clock Modifier and Type Method Description private void
RingBufferLogEvent. initTime(Clock clock)
void
RingBufferLogEventTranslator. setBasicValues(AsyncLogger anAsyncLogger, java.lang.String aLoggerName, Marker aMarker, java.lang.String theFqcn, Level aLevel, Message msg, java.lang.Throwable aThrowable, ThreadContext.ContextStack aContextStack, java.lang.StackTraceElement aLocation, Clock aClock, NanoClock aNanoClock)
void
RingBufferLogEvent. setValues(AsyncLogger anAsyncLogger, java.lang.String aLoggerName, Marker aMarker, java.lang.String theFqcn, Level aLevel, Message msg, java.lang.Throwable aThrowable, StringMap mutableContextData, ThreadContext.ContextStack aContextStack, long threadId, java.lang.String threadName, int threadPriority, java.lang.StackTraceElement aLocation, Clock clock, NanoClock nanoClock)
-
Uses of Clock in org.apache.logging.log4j.core.filter
Fields in org.apache.logging.log4j.core.filter declared as Clock Modifier and Type Field Description private static Clock
TimeFilter. CLOCK
-
Uses of Clock in org.apache.logging.log4j.core.impl
Fields in org.apache.logging.log4j.core.impl declared as Clock Modifier and Type Field Description private static Clock
Log4jLogEvent. CLOCK
private static Clock
ReusableLogEventFactory. CLOCK
Methods in org.apache.logging.log4j.core.impl with parameters of type Clock Modifier and Type Method Description (package private) void
MutableLogEvent. initTime(Clock clock, NanoClock nanoClock)
Constructors in org.apache.logging.log4j.core.impl with parameters of type Clock Constructor Description Log4jLogEvent(java.lang.String loggerName, Marker marker, java.lang.String loggerFQCN, Level level, Message message, java.lang.Throwable thrown, ThrowableProxy thrownProxy, StringMap contextData, ThreadContext.ContextStack contextStack, long threadId, java.lang.String threadName, int threadPriority, java.lang.StackTraceElement source, Clock clock, long nanoTime)
-
Uses of Clock in org.apache.logging.log4j.core.time
Subinterfaces of Clock in org.apache.logging.log4j.core.time Modifier and Type Interface Description interface
PreciseClock
Extension of theClock
interface that is able to provide more accurate time information than milliseconds since the epoch.Methods in org.apache.logging.log4j.core.time with parameters of type Clock Modifier and Type Method Description void
MutableInstant. initFrom(Clock clock)
-
Uses of Clock in org.apache.logging.log4j.core.time.internal
Classes in org.apache.logging.log4j.core.time.internal that implement Clock Modifier and Type Class Description class
FixedPreciseClock
Implementation of thePreciseClock
interface that always returns a fixed time value. -
Uses of Clock in org.apache.logging.log4j.core.util
Classes in org.apache.logging.log4j.core.util that implement Clock Modifier and Type Class Description class
CachedClock
Implementation of theClock
interface that tracks the time in a private long field that is updated by a background thread once every millisecond.class
CoarseCachedClock
This Clock implementation is similar to CachedClock.class
SystemClock
Implementation of theClock
interface that returns the system time.class
SystemMillisClock
Implementation of theClock
interface that returns the system time in millisecond granularity.Methods in org.apache.logging.log4j.core.util that return Clock Modifier and Type Method Description private static Clock
ClockFactory. createClock()
static Clock
ClockFactory. getClock()
Returns aClock
instance depending on the value of system propertyClockFactory.PROPERTY_NAME
.private static Clock
ClockFactory. logSupportedPrecision(Clock clock)
Methods in org.apache.logging.log4j.core.util that return types with arguments of type Clock Modifier and Type Method Description private static java.util.Map<java.lang.String,Supplier<Clock>>
ClockFactory. aliases()
Methods in org.apache.logging.log4j.core.util with parameters of type Clock Modifier and Type Method Description private static Clock
ClockFactory. logSupportedPrecision(Clock clock)
-