|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.util.CoarseCachedClock
public final class CoarseCachedClock
This Clock implementation is similar to CachedClock. It is slightly faster at the cost of some accuracy.
Method Summary | |
---|---|
long |
currentTimeMillis()
Returns the value of a private long field that is updated by a background thread once every millisecond. |
static CoarseCachedClock |
instance()
Returns the singleton instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CoarseCachedClock instance()
public long currentTimeMillis()
currentTimeMillis
in interface Clock
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.