public class ScheduleType extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ScheduleType.Type
The different type of schedules.
|
Modifier and Type | Method and Description |
---|---|
static ScheduleType |
createCron(String cron)
Returns a schedule instance that launches the task using a cron schedule.
|
static ScheduleType |
createLaunchLater(Date date)
Returns a schedule instance that launches the task at a given date.
|
static ScheduleType |
createLaunchNow()
Returns a schedule instance that launches the task now.
|
boolean |
equals(Object o) |
String |
getCronValue()
Returns the CRON String representation of the schedule.
|
Date |
getLaunchLaterDate()
Returns the date on which the task will be launched.
|
ScheduleType.Type |
getType()
Returns the type of the schedule.
|
int |
hashCode() |
String |
toString() |
public static ScheduleType createLaunchNow()
public static ScheduleType createLaunchLater(Date date)
date
- the Date at which the task must be launched.public static ScheduleType createCron(String cron)
cron
- the String containing the cron schedule.public ScheduleType.Type getType()
public Date getLaunchLaterDate()
public String getCronValue()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.