Package 

Class SchedulerConfiguration

  • All Implemented Interfaces:

    
    public class SchedulerConfiguration
    
                        

    The SchedulerConfiguration for the SchedulerHandler.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      SchedulerConfiguration(long executeEveryTick, Runnable runnable) Create a new SchedulerConfiguration for multiple runs.
      SchedulerConfiguration(long executeEveryTick, boolean runOnce, Runnable runnable) Create a new SchedulerConfiguration for multiple runs.
      SchedulerConfiguration(long executeEveryTick, boolean runOnce, Runnable runnable, boolean async) Create a new SchedulerConfiguration for multiple runs.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void executeTick(Long id) Its not recommended to use this function manually.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SchedulerConfiguration

        SchedulerConfiguration(long executeEveryTick, Runnable runnable)
        Create a new SchedulerConfiguration for multiple runs.
        Parameters:
        executeEveryTick - Execute on every X tick.
        runnable - The runnable to be executed if the scheduler ticks.
      • SchedulerConfiguration

        SchedulerConfiguration(long executeEveryTick, boolean runOnce, Runnable runnable)
        Create a new SchedulerConfiguration for multiple runs.
        Parameters:
        executeEveryTick - Execute on every X tick.
        runOnce - Run only once?
        runnable - The runnable to be executed if the scheduler ticks.
      • SchedulerConfiguration

        SchedulerConfiguration(long executeEveryTick, boolean runOnce, Runnable runnable, boolean async)
        Create a new SchedulerConfiguration for multiple runs.
        Parameters:
        executeEveryTick - Execute on every X tick.
        runOnce - Run only once?
        runnable - The runnable to be executed if the scheduler ticks.
        async - Should it executed async?
    • Method Detail

      • executeTick

         void executeTick(Long id)

        Its not recommended to use this function manually. The function will be automatically called every tick from the SchedulerManager.