scala

actors

package actors

A library that provides both asynchronous and synchronous messaging to allow for concurrent programming without explicit synchronization.

Guide

A detailed guide for the actors library is available http://docs.scala-lang.org/overviews/core/actors.html.

Getting Started

A starting point for using the actors library would be Reactor, ReplyReactor, or Actor or their companion objects.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. actors
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class ![a](ch: Channel[a], msg: a) extends Product with Serializable

    Used to pattern match on values that were sent to some channel Chann by the current actor self.

  2. trait AbstractActor extends OutputChannel[Any] with CanReply[Any, Any]

  3. trait Actor extends InternalActor with ReplyReactor

    Provides lightweight, concurrent actors.

  4. class AskTimeoutException extends TimeoutException

    This is what is used to complete a Future that is returned from an ask/? call, when it times out.

  5. class AskableActorRef extends ActorRef

    ActorRef with support for ask(?) operation.

  6. trait CanReply[-T, +R] extends AnyRef

    Defines result-bearing message send operations.

  7. class Channel[Msg] extends InputChannel[Msg] with OutputChannel[Msg] with CanReply[Msg, Any]

    Provides a means for typed communication among actors.

  8. trait DaemonActor extends Actor

    Base trait for actors with daemon semantics.

  9. class DeathPactException extends Exception

    This message is thrown by default when an Actor does not handle termination.

  10. case class Exit(from: AbstractActor, reason: AnyRef) extends Product with Serializable

    Sent to an actor with trapExit set to true whenever one of its linked actors terminates.

  11. abstract class Future[+T] extends Responder[T] with () ⇒ T

    A function of arity 0, returing a value of type T that, when applied, blocks the current actor (Actor.self) until the future's value is available.

  12. trait IScheduler extends AnyRef

    A common interface for all schedulers used to execute actor tasks.

  13. trait InputChannel[+Msg] extends AnyRef

    A common interface for all channels from which values can be received.

  14. trait InternalReplyReactor extends Reactor[Any] with ReactorCanReply

    Extends the Reactor trait with methods to reply to the sender of a message.

  15. trait OutputChannel[-Msg] extends AnyRef

    A common interface for all channels to which values can be sent.

  16. case class Props(creator: () ⇒ InternalActor, dispatcher: String) extends Product with Serializable

    ActorRef configuration object.

  17. trait Reactor[Msg >: Null] extends OutputChannel[Msg] with Combinators

    Super trait of all actor traits.

  18. trait SchedulerAdapter extends IScheduler

    Adapts the behavior of the standard scala.actors.Scheduler object.

  19. case class Terminated(actor: ActorRef) extends Product with Serializable

    Message that is sent to a watching actor when the watched actor terminates.

  20. case class Timeout(duration: Duration) extends Product with Serializable

  21. case class UncaughtException(actor: InternalActor, message: Option[Any], sender: Option[OutputChannel[Any]], thread: Thread, cause: Throwable) extends Exception with Product with Serializable

    The exit reason when an actor fails to catch an exception.

  22. trait ActorRef extends AnyRef

    Trait used for migration of Scala actors to Akka.

  23. trait ReplyReactor extends InternalReplyReactor

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10) Scala Actors are being removed from the standard library. Please refer to the migration guide.

  24. trait StashingActor extends InternalActor

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10) Scala Actors are being removed from the standard library. Please refer to the migration guide.

Value Members

  1. object Actor extends Combinators with Serializable

    Provides functions for the definition of actors, as well as actor operations, such as receive, react, reply, etc.

  2. object Debug extends Logger

    Provides methods for generating debugging output.

  3. object Futures

    Methods that operate on futures.

  4. object MigrationSystem

  5. object PoisonPill

  6. object Scheduler extends DelegatingScheduler

    Used by Actor instances to execute tasks of an actor execution.

  7. object StashingActor extends Combinators with Serializable

  8. object TIMEOUT extends Product with Serializable

    Used as the timeout pattern in receiveWithin and reactWithin.

  9. object Timeout extends Serializable

  10. object pattern

  11. package remote

  12. package scheduler

Inherited from AnyRef

Inherited from Any