public final class GerritTriggerTimer extends Object
Modifier and Type | Field and Description |
---|---|
protected static long |
DELAY_MILLISECONDS
Wait this many milliseconds before the first call to a TimerTask.
|
Modifier and Type | Method and Description |
---|---|
static GerritTriggerTimer |
getInstance()
Returns the instance, and creates it first if needed.
|
void |
schedule(GerritTriggerTimerTask timerTask,
GerritTrigger trigger)
Schedule a TimerTask according to the two constants above.
|
protected static final long DELAY_MILLISECONDS
public static GerritTriggerTimer getInstance()
public void schedule(GerritTriggerTimerTask timerTask, @Nonnull GerritTrigger trigger)
trigger
- the trigger associated with the tasktimerTask
- the TimerTask to be scheduledCopyright © 2016–2020. All rights reserved.