DayAfterSchedule (TreeSched API)
Keywords: org.treesched.schedules.DayAfterSchedule class

Overview | Package | Class | Tree | Deprecated | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.treesched.schedules
Class DayAfterSchedule

    java.lang.Object
      org.treesched.AbstractSchedule
          org.treesched.schedules.DayAfterSchedule

All Implemented Interfaces:
  RefineableSchedule, Schedule, java.io.Serializable

public final class DayAfterSchedule
extends AbstractSchedule
implements java.io.Serializable

A schedule that returns the day after when a child schedule is due. This is designed to be used for processing which happens the day after, i.e. processing previous business days data.

Typical configuration is: ``

     <dayafter>
       <dayofmonth from="25" to="0">
         <last>
            <dayofweek from="mon" to="fri">
              <daily/gt;
            </dayofweek>
         </last>h;
       </dayofmonth>
     </dayafter>

Author:
  Rob Gordon
See Also:
  Serialized Form

Constructor Summary
`DayAfterSchedule()`

Method Summary
`Interval` | `nextDue(java.util.Date now)` For a given date a schedule will provide the interval this schedule should next be scheduled in.
`java.lang.String` | `toString()` Override toString.

Methods inherited from class org.treesched.AbstractSchedule
`addChildSchedule, getChildSchedule, getLimits, reset, setChildSchedule, setLimits`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### DayAfterSchedule

    public DayAfterSchedule()

Method Detail

### nextDue

    public Interval nextDue(java.util.Date now)

  Description copied from interface: `Schedule`
  For a given date a schedule will provide the interval this schedule should next be scheduled in.

  If the schedule is never due again for the given date, null is returned.

  Specified by:
    `nextDue` in interface `Schedule`
  Parameters:
    `now` - The date now.
  Returns:
    The next due interval for the schedule.

### toString

    public java.lang.String toString()

  Override toString.

Overview | Package | Class | Tree | Deprecated | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD