Package com.google.gerrit.server.config
Class ScheduleConfig
- java.lang.Object
-
- com.google.gerrit.server.config.ScheduleConfig
-
public class ScheduleConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static long
INVALID_CONFIG
static long
MISSING_CONFIG
-
Constructor Summary
Constructors Constructor Description ScheduleConfig(org.eclipse.jgit.lib.Config rc, String section)
ScheduleConfig(org.eclipse.jgit.lib.Config rc, String section, String subsection)
ScheduleConfig(org.eclipse.jgit.lib.Config rc, String section, String subsection, String keyInterval, String keyStartTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getInitialDelay()
Milliseconds between constructor invocation and first event time.long
getInterval()
Number of milliseconds between events.String
toString()
-
-
-
Field Detail
-
MISSING_CONFIG
public static final long MISSING_CONFIG
- See Also:
- Constant Field Values
-
INVALID_CONFIG
public static final long INVALID_CONFIG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInitialDelay
public long getInitialDelay()
Milliseconds between constructor invocation and first event time.If there is any lag between the constructor invocation and queuing the object into an executor the event will run later, as there is no method to adjust for the scheduling delay.
-
getInterval
public long getInterval()
Number of milliseconds between events.
-
-