Report a failure.
Report a failure. Used to report failures during periodic tasks
Create a DelayedFuture that executes the supplied function after the given delay
Create a DelayedFuture that executes the supplied function after the given delay
the time from now to delay execution
the function to execute
a DelayedFuture that can be used to extract result
java.util.concurrent.RejectedExecutionException
if the task cannot be
scheduled for execution
Creates a PeriodicTask that executes first after the given initial delay, and subsequently with the given period.
Creates a PeriodicTask that executes first after the given initial delay, and subsequently with the given period. PeriodicTask may stopped using the cancel method. If a failure occurs while processing the task, the task is automatically cancelled. If any execution of this task takes longer than its period, then subsequent executions may start late, but will not concurrently execute.
the time to delay first execution
the period between successive executions
TRUE to start the periodic task paused FALSE to start running
the task to execute
a PeriodicTask
java.lang.IllegalArgumentException
if period less than or equal to zero
java.util.concurrent.RejectedExecutionException
if the task cannot be
scheduled for execution
Create a DelayedFuture that executes the supplied function after the given delay
Create a DelayedFuture that executes the supplied function after the given delay
the time from now to delay execution
the value to return if the future is cancelled
the function to execute
a DelayedFuture that can be used to extract result or cancel (only before it has been started)
java.util.concurrent.RejectedExecutionException
if the task cannot be
scheduled for execution
A trait for scheduling delayed or periodic tasks