akka.actor

DefaultScheduler

class DefaultScheduler extends Scheduler with Closeable

Scheduled tasks (Runnable and functions) are executed with the supplied dispatcher. Note that dispatcher is by-name parameter, because dispatcher might not be initialized when the scheduler is created.

The HashedWheelTimer used by this class MUST throw an IllegalStateException if it does not enqueue a task. Once a task is queued, it MUST be executed or returned from stop().

Linear Supertypes
Closeable, Scheduler, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. DefaultScheduler
  2. Closeable
  3. Scheduler
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultScheduler(hashedWheelTimer: HashedWheelTimer, log: LoggingAdapter, dispatcher: ⇒ MessageDispatcher)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def close(): Unit

    Definition Classes
    DefaultScheduler → Closeable
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. def schedule(initialDelay: Duration, delay: Duration, runnable: Runnable): Cancellable

    Schedules a function to be run repeatedly with an initial delay and a frequency.

    Schedules a function to be run repeatedly with an initial delay and a frequency. E.g. if you would like the function to be run after 2 seconds and thereafter every 100ms you would set delay = Duration(2, TimeUnit.SECONDS) and frequency = Duration(100, TimeUnit.MILLISECONDS)

    Java API

    Definition Classes
    DefaultSchedulerScheduler
  19. def schedule(initialDelay: Duration, delay: Duration)(f: ⇒ Unit): Cancellable

    Schedules a function to be run repeatedly with an initial delay and a frequency.

    Schedules a function to be run repeatedly with an initial delay and a frequency. E.g. if you would like the function to be run after 2 seconds and thereafter every 100ms you would set delay = Duration(2, TimeUnit.SECONDS) and frequency = Duration(100, TimeUnit.MILLISECONDS)

    Scala API

    Definition Classes
    DefaultSchedulerScheduler
  20. def schedule(initialDelay: Duration, delay: Duration, receiver: ActorRef, message: Any): Cancellable

    Schedules a message to be sent repeatedly with an initial delay and frequency.

    Schedules a message to be sent repeatedly with an initial delay and frequency. E.g. if you would like a message to be sent immediately and thereafter every 500ms you would set delay=Duration.Zero and frequency=Duration(500, TimeUnit.MILLISECONDS)

    Java & Scala API

    Definition Classes
    DefaultSchedulerScheduler
  21. def scheduleOnce(delay: Duration)(f: ⇒ Unit): Cancellable

    Schedules a function to be run once with a delay, i.

    Schedules a function to be run once with a delay, i.e. a time period that has to pass before the function is run.

    Scala API

    Definition Classes
    DefaultSchedulerScheduler
  22. def scheduleOnce(delay: Duration, receiver: ActorRef, message: Any): Cancellable

    Schedules a message to be sent once with a delay, i.

    Schedules a message to be sent once with a delay, i.e. a time period that has to pass before the message is sent.

    Java & Scala API

    Definition Classes
    DefaultSchedulerScheduler
  23. def scheduleOnce(delay: Duration, runnable: Runnable): Cancellable

    Schedules a Runnable to be run once with a delay, i.

    Schedules a Runnable to be run once with a delay, i.e. a time period that has to pass before the runnable is executed.

    Java & Scala API

    Definition Classes
    DefaultSchedulerScheduler
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Closeable

Inherited from Scheduler

Inherited from AnyRef

Inherited from Any