scala.actors

trait ReplyableReactor

[source: scala/actors/ReplyableReactor.scala]

trait ReplyableReactor
extends Replyable[Any, Any] with AnyRef
The ReplyableReactor trait provides message send operations that may result in a response from the receiver.
Author
Philipp Haller
Type Summary
type Future
Method Summary
override def !! [A](msg : Any, f : PartialFunction[Any, A]) : Future[A]
Sends msg to this actor and immediately returns a future representing the reply value. The reply is post-processed using the partial function f. This also allows to recover a more precise type for the reply value.
override def !! (msg : Any) : Future[Any]
Sends msg to this actor and immediately returns a future representing the reply value.
def !? (msg : Any) : Any
Sends msg to this actor and awaits reply (synchronous).
def !? (msec : Long, msg : Any) : Option[Any]
Sends msg to this actor and awaits reply (synchronous) within msec milliseconds.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Type Details
type Future

Method Details
def !?(msg : Any) : Any
Sends msg to this actor and awaits reply (synchronous).
Parameters
msg - the message to be sent
Returns
the reply
Overrides
Replyable.!?

def !?(msec : Long, msg : Any) : Option[Any]
Sends msg to this actor and awaits reply (synchronous) within msec milliseconds.
Parameters
msec - the time span before timeout
msg - the message to be sent
Returns
None in case of timeout, otherwise Some(x) where x is the reply
Overrides
Replyable.!?

override def !!(msg : Any) : Future[Any]
Sends msg to this actor and immediately returns a future representing the reply value.
Overrides
Replyable.!!

override def !![A](msg : Any, f : PartialFunction[Any, A]) : Future[A]
Sends msg to this actor and immediately returns a future representing the reply value. The reply is post-processed using the partial function f. This also allows to recover a more precise type for the reply value.
Overrides
Replyable.!!