scala.actors

trait Reactor

[source: scala/actors/Reactor.scala]

trait Reactor
extends OutputChannel[Any] with AnyRef
The Reactor trait provides lightweight actors.
Author
Philipp Haller
Direct Known Subclasses:
ReplyReactor

Method Summary
def ! (msg : Any) : Unit
Sends msg to this OutputChannel (asynchronous).
abstract def act : Unit
The behavior of an actor is specified by implementing this abstract method.
protected[actors] def exceptionHandler : PartialFunction[java.lang.Exception, Unit]
protected[this] def exit : Nothing
def forward (msg : Any) : Unit
Forwards msg to this OutputChannel (asynchronous).
protected[actors] def mailboxSize : Int
protected[actors] def react (f : PartialFunction[Any, Unit]) : Nothing
def receiver : Actor
Returns the Reactor that is receiving from this OutputChannel.
protected[actors] def scheduler : IScheduler
def send (msg : Any, replyTo : OutputChannel[Any]) : Unit
Sends msg to this actor (asynchronous) supplying explicit reply destination.
def start : Reactor
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def act : Unit
The behavior of an actor is specified by implementing this abstract method.

protected[actors] def exceptionHandler : PartialFunction[java.lang.Exception, Unit]

protected[actors] def scheduler : IScheduler

protected[actors] def mailboxSize : Int

def send(msg : Any, replyTo : OutputChannel[Any]) : Unit
Sends msg to this actor (asynchronous) supplying explicit reply destination.
Parameters
msg - the message to send
replyTo - the reply destination
Overrides
OutputChannel.send

def !(msg : Any) : Unit
Sends msg to this OutputChannel (asynchronous).
Overrides
OutputChannel.!

def forward(msg : Any) : Unit
Forwards msg to this OutputChannel (asynchronous).
Overrides
OutputChannel.forward

def receiver : Actor
Returns the Reactor that is receiving from this OutputChannel.
Overrides
OutputChannel.receiver

protected[actors] def react(f : PartialFunction[Any, Unit]) : Nothing

def start : Reactor

protected[this] def exit : Nothing