public class RepositoryJobSimpleTrigger extends RepositoryJobTrigger
Modifier and Type | Field and Description |
---|---|
static int |
REPEAT_INDEFINITELY
Special repeat count value for indefinite repetition
of the trigger.
|
Constructor and Description |
---|
RepositoryJobSimpleTrigger(String name,
Date startTime)
Create a trigger that will occur once at
startTime . |
RepositoryJobSimpleTrigger(String name,
Date startTime,
int repeatCount,
long repeatInterval)
Create a trigger that will start at
startTime and repeat at repeatInterval
repeatCount times. |
Modifier and Type | Method and Description |
---|---|
int |
getRepeatCount()
How many times to repeat the trigger.
|
long |
getRepeatInterval()
How long in between trigger occurrences.
|
Date |
getStartTime()
When the trigger will occur (for the first time).
|
getName
public static final int REPEAT_INDEFINITELY
public RepositoryJobSimpleTrigger(String name, Date startTime)
startTime
.name
- the name of the triggerstartTime
- when the trigger must occurpublic RepositoryJobSimpleTrigger(String name, Date startTime, int repeatCount, long repeatInterval)
startTime
and repeat at repeatInterval
repeatCount
times.name
- the name of the trigger.startTime
- when the first trigger must occur.repeatCount
- how many times in total the trigger must occur.repeatInterval
- the number of ms between trigger occurrences.public Date getStartTime()
public int getRepeatCount()
public long getRepeatInterval()
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.