public interface JobSchedulerClock
DateTime.| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
now(org.joda.time.DateTimeZone zone)
Returns the current time for the give time zone.
|
org.joda.time.DateTime |
nowUTC()
Returns the current UTC time.
|
void |
sleep(long duration,
TimeUnit unit)
Causes the current execution thread to sleep for the given duration.
|
void |
sleepUninterruptibly(long duration,
TimeUnit unit)
Causes the current execution thread to sleep uninterruptibly for the given duration.
|
org.joda.time.DateTime nowUTC()
org.joda.time.DateTime now(org.joda.time.DateTimeZone zone)
void sleep(long duration,
TimeUnit unit)
throws InterruptedException
duration - duration valueunit - duration unitInterruptedExceptionvoid sleepUninterruptibly(long duration,
TimeUnit unit)
duration - duration valueunit - duration unitCopyright © 2012–2021 Graylog, Inc.. All rights reserved.