public class FakeClock extends SystemNanoClock
Clock that is manually controlled.| Modifier and Type | Method and Description |
|---|---|
FakeClock |
forward(long delta,
TimeUnit unit) |
ZoneId |
getZone() |
Instant |
instant() |
long |
millis() |
long |
nanos() |
Clock |
withZone(ZoneId zone) |
equals, fixed, hashCode, offset, system, systemDefaultZone, systemUTC, tick, tickMinutes, tickSecondspublic ZoneId getZone()
getZone in class SystemNanoClockpublic Clock withZone(ZoneId zone)
withZone in class SystemNanoClockpublic Instant instant()
instant in class SystemNanoClockpublic long nanos()
nanos in class SystemNanoClockCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.