scala.actors

Scheduler

object Scheduler extends DelegatingScheduler

The Scheduler object is used by Actor to execute tasks of an actor execution.

Inherits

  1. DelegatingScheduler
  2. IScheduler
  3. AnyRef
  4. Any

Value Members

  1. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  2. def execute(task: Runnable): Unit

    Submits a Runnable for execution

  3. def execute(fun: ⇒ Unit): Unit

    Submits a closure for execution

  4. def executeFromActor(task: Runnable): Unit

  5. def hashCode(): Int

    Returns a hash code value for the object

  6. def isActive: Boolean

    Always active because it will just make a new scheduler if required

  7. def makeNewScheduler(): IScheduler

  8. def managedBlock(blocker: ManagedBlocker): Unit

  9. def newActor(actor: Reactor): Unit

    Registers a newly created actor with this scheduler

  10. def onLockup(millis: Int)(handler: () ⇒ Unit): Unit

  11. def onLockup(handler: () ⇒ Unit): Unit

  12. def onTerminate(actor: Reactor)(f: ⇒ Unit): Unit

    Registers a closure to be executed when the specified actor terminates

  13. def printActorDump: Unit

  14. def restart(): Unit

  15. def shutdown(): Unit

    Shuts down the scheduler

  16. def snapshot(): Unit

  17. def terminated(actor: Reactor): Unit

    Unregisters an actor from this scheduler, because it has terminated

  18. def tick(a: Actor): Unit

  19. def toString(): String

    Returns a string representation of the object