public class CronHelper extends Object
| Constructor and Description |
|---|
CronHelper() |
CronHelper(Clock clock)
This .ctor provided for testing
|
| Modifier and Type | Method and Description |
|---|---|
String |
generateOneTimeCronExpression(int minutesFromNow)
Schedule a re-invocation of the executing handler no less than 1 minute from
now
/** Creates a cron(..) expression for a single instance at Now+minutesFromNow
NOTE: CloudWatchEvents only support a 1minute granularity for re-invoke
Anything less should be handled inside the original handler request
Expression is of form cron(minutes, hours, day-of-month, month, day-of-year,
year) where day-of-year is not necessary when the day-of-month and
month-of-year fields are supplied
|
public CronHelper()
public CronHelper(Clock clock)
clock - current clock system usually Clock.systemUTC()public String generateOneTimeCronExpression(int minutesFromNow)
minutesFromNow - The number of minutes from now for building the cron
expressionCopyright © 2019 Amazon Web Services, Inc. All Rights Reserved.