Class DefaultAction

  • All Implemented Interfaces:
    IAction, ISchedulableAction

    public class DefaultAction
    extends AbstractAction
    Default SchedulableAction used by as a default by the scheduling mechanism. A DefaultAction essentially combines an IAction to execute with the data necessary to schedule that IAction for execution.
    Nick Collier
    See Also:
    IAction, ISchedulableAction
    • Constructor Detail

      • DefaultAction

        public DefaultAction​(ScheduleParameters params,
                             IAction actionToExecute,
                             long orderIndex)
        Creates a DefaultAction to execute the specified action according to the specified scheduling parameters.
        params - the scheduling parameters for this DefaultAction
        actionToExecute - the IAction to execute when this DefaultAction is executed
        orderIndex - the order in which this was added to a schedule
    • Method Detail

      • execute

        public void execute()
        Executes the IAction specified in the constructor.