Module aeonics.core

Class Origin.Scheduled

  • Enclosing class:
    Origin

    public static class Origin.Scheduled
    extends Origin
    This class represents a data Origin that is activated at regular interval.

    You should provide the Origin.Scheduled.Type.task(Consumer) and set a recurrence rule.

    Unless overridden, instances of this entity are always internal.

    • Constructor Detail

      • Scheduled

        public Scheduled()
    • Method Detail

      • defaultTarget

        protected java.lang.Class<? extends Origin.Scheduled.Type> defaultTarget()
        Description copied from class: Item
        Returns the default target entity type. This method should be implemented by subclasses to specify the target entity type.
        Overrides:
        defaultTarget in class Origin
        Returns:
        the default target entity type
      • defaultCreator

        protected java.util.function.Supplier<? extends Origin.Scheduled.Type> defaultCreator()
        Description copied from class: Item
        Returns the default target entity creator. This method should be implemented by subclasses to specify the entity creator.
        Overrides:
        defaultCreator in class Origin
        Returns:
        the default target entity creator
      • template

        public Origin.Template template()
        Description copied from class: Item
        Returns the template to build the target entity.

        This method should ultimately be used to provide the final entity template. Although, it may also provide a partial template that subclassed may complement.

        Overrides:
        template in class Origin
        Returns:
        the matching entity template