Interface OSchedulerInternal

All Known Subinterfaces:
OrientDBInternal
All Known Implementing Classes:
OrientDBDistributed, OrientDBEmbedded, OrientDBRemote

public interface OSchedulerInternal
  • Method Details

    • schedule

      void schedule(TimerTask task, long delay, long period)
    • scheduleOnce

      void scheduleOnce(TimerTask task, long delay)
    • scheduleFrom

      default void scheduleFrom(TimerTask task, Date firstTime, long period)
    • delayExecute

      OCancellableTimer delayExecute(Runnable toExecute, long delay)
      Execute a task on executor after a delay
      Parameters:
      toExecute -
      delay -
    • delayExecute

      default OCancellableTimer delayExecute(Runnable toExecute, Date at)
      Execute a task on executor at specific time or immediately
      Parameters:
      toExecute -
      at -
    • periodicExecute

      OCancellableTimer periodicExecute(Runnable toExecute, long periodic)
      Add a task on the internal executor periodically.
      Parameters:
      toExecute -
      periodic -
      Returns:
    • scheduleExecuteFrom

      OCancellableTimer scheduleExecuteFrom(Runnable task, Date firstTime, long period)