Interface OSchedulerInternal
- All Known Subinterfaces:
OrientDBInternal
- All Known Implementing Classes:
OrientDBDistributed,OrientDBEmbedded,OrientDBRemote
public interface OSchedulerInternal
-
Method Summary
Modifier and TypeMethodDescriptiondelayExecute(Runnable toExecute, long delay) Execute a task on executor after a delaydefault OCancellableTimerdelayExecute(Runnable toExecute, Date at) Execute a task on executor at specific time or immediatelyperiodicExecute(Runnable toExecute, long periodic) Add a task on the internal executor periodically.voidscheduleExecuteFrom(Runnable task, Date firstTime, long period) default voidscheduleFrom(TimerTask task, Date firstTime, long period) voidscheduleOnce(TimerTask task, long delay)
-
Method Details
-
schedule
-
scheduleOnce
-
scheduleFrom
-
delayExecute
Execute a task on executor after a delay- Parameters:
toExecute-delay-
-
delayExecute
Execute a task on executor at specific time or immediately- Parameters:
toExecute-at-
-
periodicExecute
Add a task on the internal executor periodically.- Parameters:
toExecute-periodic-- Returns:
-
scheduleExecuteFrom
-