Save This Page
Home » oscache-2.4.1-full » com.opensymphony.oscache » util » [javadoc | source]
com.opensymphony.oscache.util
public class: FastCronParser [javadoc | source]
java.lang.Object
   com.opensymphony.oscache.util.FastCronParser
Parses cron expressions and determines at what time in the past is the most recent match for the supplied expression.
Constructor:
 public FastCronParser() 
 public FastCronParser(String cronExpression) throws ParseException 
    Constructs a new FastCronParser based on the supplied expression.
    Throws:
    ParseException - if the supplied expression is not a valid cron expression.
Method from com.opensymphony.oscache.util.FastCronParser Summary:
getCronExpression,   getExpressionSummary,   getTimeBefore,   hasMoreRecentMatch,   setCronExpression
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.oscache.util.FastCronParser Detail:
 public String getCronExpression() 
    Retrieves the current cron expression.
 public String getExpressionSummary() 
    Recreates the original human-readable cron expression based on the internal datastructure values.
 public long getTimeBefore(long time) 
    Find the most recent time that matches this cron expression. This time will always be in the past, ie a lower value than the supplied time.
 public boolean hasMoreRecentMatch(long time) 
    Determines whether this cron expression matches a date/time that is more recent than the one supplied.
 public  void setCronExpression(String cronExpression) throws ParseException 
    Resets the cron expression to the value supplied.