#1692 - Adding config option for making the Scheduler daemonic

This commit is contained in:
Viktor Klang 2012-01-19 20:55:27 +01:00
parent c4b4302266
commit 03bc15feb1
4 changed files with 21 additions and 8 deletions

View file

@ -123,7 +123,9 @@ trait Cancellable {
* if it does not enqueue a task. Once a task is queued, it MUST be executed or
* returned from stop().
*/
class DefaultScheduler(hashedWheelTimer: HashedWheelTimer, log: LoggingAdapter, dispatcher: MessageDispatcher) extends Scheduler with Closeable {
class DefaultScheduler(hashedWheelTimer: HashedWheelTimer,
log: LoggingAdapter,
dispatcher: MessageDispatcher) extends Scheduler with Closeable {
def schedule(initialDelay: Duration, delay: Duration, receiver: ActorRef, message: Any): Cancellable = {
val continuousCancellable = new ContinuousCancellable