Class DefaultEventManager.TemplateStartPoll

java.lang.Object
de.aristaflow.adept2.core.eventmanager.common.DefaultEventManager.TemplateStartPoll
All Implemented Interfaces:
Runnable
Enclosing class:
DefaultEventManager

protected class DefaultEventManager.TemplateStartPoll extends Object implements Runnable
The poll of the process manager for the scheduled starts of template statuses, which runs first after the minimal delay, or after the poll time if this is shorter, and then the poll time after the end of each run.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Filter
    The filter matching the template statuses with a live scheduled start.
    protected boolean
    Whether a run of this poll has started.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates the poll of the template statuses which the designated filter matches.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Instant
    Gets the time of the next run of this poll.
    void
    run()
     
    Returns the name of this poll, which the event manager names when it logs about the runs of this poll.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • filter

      protected final Filter filter
      The filter matching the template statuses with a live scheduled start.
    • started

      protected boolean started
      Whether a run of this poll has started.
  • Constructor Details

    • TemplateStartPoll

      protected TemplateStartPoll(Filter filter)
      Creates the poll of the template statuses which the designated filter matches. Nothing runs before the poll is scheduled.
      Parameters:
      filter - The filter matching the template statuses with a live scheduled start.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • getNextRunTime

      protected Instant getNextRunTime()
      Gets the time of the next run of this poll.
      Returns:
      The time of the next run of this poll. This will never be null.
    • toString

      public String toString()
      Returns the name of this poll, which the event manager names when it logs about the runs of this poll.
      Overrides:
      toString in class Object
      Returns:
      The name of this poll.