public class ScheduleInfoImpl extends Object implements org.apache.sling.event.jobs.ScheduleInfo, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENTING_THREADPOOL_NAME |
| Modifier and Type | Method and Description |
|---|---|
static ScheduleInfoImpl |
AT(Date at) |
void |
check(List<String> errors) |
static ScheduleInfoImpl |
CRON(String expr) |
static ScheduleInfoImpl |
DAILY(int hour,
int minute) |
static ScheduleInfoImpl |
deserialize(org.apache.sling.event.jobs.ScheduleInfo.ScheduleType scheduleType,
String s) |
static ScheduleInfoImpl |
deserialize(String s) |
Date |
getAt() |
String |
getCronExpression()
If the job is scheduled daily or weekly, return the cron expression
|
int |
getDayOfMonth() |
int |
getDayOfWeek() |
String |
getExpression() |
int |
getHourOfDay() |
int |
getMinuteOfHour() |
int |
getMonthOfYear() |
Date |
getNextScheduledExecution() |
String |
getSerializedString() |
org.apache.sling.event.jobs.ScheduleInfo.ScheduleType |
getType() |
static ScheduleInfoImpl |
HOURLY(int minutes) |
static ScheduleInfoImpl |
MONTHLY(int day,
int hour,
int minute) |
String |
toString() |
static ScheduleInfoImpl |
WEEKLY(int day,
int hour,
int minute) |
static ScheduleInfoImpl |
YEARLY(int month,
int day,
int hour,
int minute) |
public static final String EVENTING_THREADPOOL_NAME
public static ScheduleInfoImpl HOURLY(int minutes)
public static ScheduleInfoImpl CRON(String expr)
public static ScheduleInfoImpl AT(Date at)
public static ScheduleInfoImpl YEARLY(int month, int day, int hour, int minute)
public static ScheduleInfoImpl MONTHLY(int day, int hour, int minute)
public static ScheduleInfoImpl WEEKLY(int day, int hour, int minute)
public static ScheduleInfoImpl DAILY(int hour, int minute)
public static ScheduleInfoImpl deserialize(org.apache.sling.event.jobs.ScheduleInfo.ScheduleType scheduleType, String s)
public static ScheduleInfoImpl deserialize(String s)
public String getSerializedString()
public org.apache.sling.event.jobs.ScheduleInfo.ScheduleType getType()
getType in interface org.apache.sling.event.jobs.ScheduleInfopublic Date getAt()
getAt in interface org.apache.sling.event.jobs.ScheduleInfopublic int getDayOfWeek()
getDayOfWeek in interface org.apache.sling.event.jobs.ScheduleInfopublic int getHourOfDay()
getHourOfDay in interface org.apache.sling.event.jobs.ScheduleInfopublic int getMinuteOfHour()
getMinuteOfHour in interface org.apache.sling.event.jobs.ScheduleInfopublic String getExpression()
getExpression in interface org.apache.sling.event.jobs.ScheduleInfopublic int getMonthOfYear()
getMonthOfYear in interface org.apache.sling.event.jobs.ScheduleInfopublic int getDayOfMonth()
getDayOfMonth in interface org.apache.sling.event.jobs.ScheduleInfopublic Date getNextScheduledExecution()
public String getCronExpression()
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.