Interface PreciseClock
-
- All Superinterfaces:
Clock
- All Known Implementing Classes:
FixedPreciseClock
public interface PreciseClock extends Clock
Extension of theClock
interface that is able to provide more accurate time information than milliseconds since the epoch.PreciseClock
implementations are free to return millisecond-precision time if that is the most accurate time information available on this platform.- Since:
- 2.11
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
init(MutableInstant mutableInstant)
Initializes the specified instant with time information as accurate as available on this platform.-
Methods inherited from interface org.apache.logging.log4j.core.util.Clock
currentTimeMillis
-
-
-
-
Method Detail
-
init
void init(MutableInstant mutableInstant)
Initializes the specified instant with time information as accurate as available on this platform.- Parameters:
mutableInstant
- the container to be initialized with the accurate time information- Since:
- 2.11
-
-