scala.actors.migration

ActWithStash

trait ActWithStash extends InternalActor

Annotations
@deprecated
Deprecated

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

Linear Supertypes
InternalActor, Serializable, java.io.Serializable, InputChannel[Any], ActorCanReply, InternalReplyReactor, ReactorCanReply, Reactor[Any], Combinators, AbstractActor, CanReply[Any, Any], OutputChannel[Any], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ActWithStash
  2. InternalActor
  3. Serializable
  4. Serializable
  5. InputChannel
  6. ActorCanReply
  7. InternalReplyReactor
  8. ReactorCanReply
  9. Reactor
  10. Combinators
  11. AbstractActor
  12. CanReply
  13. OutputChannel
  14. AnyRef
  15. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class ActorContext extends AnyRef

    Used to simulate Akka context behavior.

  2. type Future[+P] = actors.Future[P]

    Definition Classes
    ReactorCanReply → CanReply
  3. type Receive = PartialFunction[Any, Unit]

Abstract Value Members

  1. abstract def receive: Receive

    Migration notes: this method replaces receiveWithin, receive and react methods from Scala Actors.

Concrete Value Members

  1. def !(msg: Any): Unit

    Definition Classes
    InternalReplyReactor → Reactor → OutputChannel
  2. def !!(msg: Any): Future[Any]

    Definition Classes
    ActorCanReply → ReactorCanReply → CanReply
  3. def !![A](msg: Any, handler: PartialFunction[Any, A]): Future[A]

    Definition Classes
    ActorCanReply → ReactorCanReply → CanReply
  4. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. def !?(msec: Long, msg: Any): Option[Any]

    Definition Classes
    ActorCanReply → ReactorCanReply → CanReply
  6. def !?(msg: Any): Any

    Definition Classes
    ActorCanReply → ReactorCanReply → CanReply
  7. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  9. def ?: Any

    Definition Classes
    InternalActor → InputChannel
  10. lazy val ReceiveTimeout: TIMEOUT.type

  11. def act(): Unit

    Definition Classes
    ActWithStash → Reactor
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. val context: ActorContext

    Attributes
    protected[this]
  15. def continue(): Unit

    Definition Classes
    Combinators
  16. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  18. def exceptionHandler: PartialFunction[Exception, Unit]

    Attributes
    protected[scala.actors]
    Definition Classes
    Reactor
  19. def exit(): Nothing

    Attributes
    protected[scala.actors]
    Definition Classes
    InternalActor → Reactor
  20. def exit(reason: AnyRef): Nothing

    Attributes
    protected[scala.actors]
    Definition Classes
    InternalActor
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def forward(msg: Any): Unit

    Definition Classes
    InternalReplyReactor → Reactor → OutputChannel
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def getState: Actor.State.Value

    Definition Classes
    InternalActor → InternalReplyReactor → Reactor
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. def internalSender: OutputChannel[Any]

    Attributes
    protected[scala.actors]
    Definition Classes
    InternalReplyReactor
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def link(body: ⇒ Unit): Actor

    Definition Classes
    InternalActor
  29. def link(to: ActorRef): ActorRef

    Definition Classes
    InternalActor
  30. def link(to: AbstractActor): AbstractActor

    Definition Classes
    InternalActor
  31. def loop(body: ⇒ Unit): Unit

    Definition Classes
    Combinators
  32. def loopWhile(cond: ⇒ Boolean)(body: ⇒ Unit): Unit

    Definition Classes
    Combinators
  33. def mailboxSize: Int

    Attributes
    protected[scala.actors]
    Definition Classes
    Reactor
  34. implicit def mkBody[A](body: ⇒ A): Body[A]

    Definition Classes
    Reactor → Combinators
  35. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  38. def postStop(): Unit

    User overridable callback.

    User overridable callback.

    Is called when 'actor.stop()' is invoked.

  39. def preRestart(reason: Throwable, message: Option[Any]): Unit

    User overridable callback.

    User overridable callback.

    Is called on a crashed Actor right BEFORE it is restarted to allow clean up of resources before Actor is terminated. By default it calls postStop()

  40. def preStart(): Unit

    User overridable callback.

    User overridable callback.

    Is called when an Actor is started by invoking 'actor'.

  41. def react(handler: PartialFunction[Any, Unit]): Nothing

    Definition Classes
    InternalActor → InputChannel → InternalReplyReactor → Reactor
  42. def reactWithin(msec: Long)(handler: PartialFunction[Any, Unit]): Nothing

    Definition Classes
    InternalActor → InputChannel → InternalReplyReactor
  43. def receive[R](f: PartialFunction[Any, R]): R

    Definition Classes
    InternalActor → InputChannel
  44. def receiveWithin[R](msec: Long)(f: PartialFunction[Any, R]): R

    Definition Classes
    InternalActor → InputChannel
  45. def receiver: Actor

    Definition Classes
    Reactor → OutputChannel
  46. def reply(msg: Any): Unit

    Attributes
    protected[scala.actors]
    Definition Classes
    InternalReplyReactor
  47. def restart(): Unit

    Definition Classes
    Reactor
  48. def scheduler: IScheduler

    Attributes
    protected[scala.actors]
    Definition Classes
    InternalActor → Reactor
  49. val self: ActorRef

  50. def send(msg: Any, replyTo: OutputChannel[Any]): Unit

    Definition Classes
    Reactor → OutputChannel
  51. def sender: ActorRef

    Attributes
    protected
  52. def start(): ActWithStash

    Definition Classes
    ActWithStash → InternalActor → Reactor
  53. final def stash(msg: Any): Unit

    Adds message to a stash, to be processed later.

    Adds message to a stash, to be processed later. Stashed messages can be fed back into the actors' mailbox using unstashAll().

    Temporarily stashing away messages that the actor does not (yet) handle. Simplifies implementing certain messaging protocols.

  54. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  55. def toString(): String

    Definition Classes
    AnyRef → Any
  56. def trapExit: Boolean

    Definition Classes
    InternalActor
  57. def trapExit_=(value: Boolean): Unit

    Definition Classes
    InternalActor
  58. def unhandled(message: Any): Unit

    User overridable callback.

    User overridable callback.

    Is called when a message isn't handled by the current behavior of the actor by default it does: EventHandler.warning(self, message)

  59. def unlink(from: ActorRef): Unit

    Definition Classes
    InternalActor
  60. def unlink(from: AbstractActor): Unit

    Definition Classes
    InternalActor
  61. final def unstashAll(): Unit

  62. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )