Class RepositoryJobSimpleTrigger

java.lang.Object
org.onehippo.repository.scheduling.RepositoryJobTrigger
org.onehippo.repository.scheduling.RepositoryJobSimpleTrigger

public class RepositoryJobSimpleTrigger extends RepositoryJobTrigger
Repository job trigger that allows to schedule a repository job either once at a given date, or repeatedly from a given date onwards.
  • Field Details

    • REPEAT_INDEFINITELY

      public static final int REPEAT_INDEFINITELY
      Special repeat count value for indefinite repetition of the trigger.
      See Also:
  • Constructor Details

    • RepositoryJobSimpleTrigger

      public RepositoryJobSimpleTrigger(String name, Date startTime)
      Create a trigger that will occur once at startTime.
      Parameters:
      name - the name of the trigger
      startTime - when the trigger must occur
    • RepositoryJobSimpleTrigger

      public RepositoryJobSimpleTrigger(String name, Date startTime, int repeatCount, long repeatInterval)
      Create a trigger that will start at startTime and repeat at repeatInterval repeatCount times.
      Parameters:
      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.
  • Method Details

    • getStartTime

      public Date getStartTime()
      When the trigger will occur (for the first time).
    • getRepeatCount

      public int getRepeatCount()
      How many times to repeat the trigger.
    • getRepeatInterval

      public long getRepeatInterval()
      How long in between trigger occurrences.