|
Scala 2.3.1
|
class
Channel
[Msg]
extends
java.lang.Object
with
scala.actors.InputChannel[Msg]
with
scala.actors.OutputChannel[Msg]
with
scala.ScalaObject
Channel
may receive from it.Constructor Summary | |
def
this
|
Val Summary | |
val
waitingForNone
: (Msg) => scala.Boolean
|
Var Summary | |
var
isSuspended
: scala.Boolean
|
|
var
receiver
: scala.actors.Actor
|
|
var
waitingFor
: (Msg) => scala.Boolean
|
|
var
waitingForSender
: scala.actors.Actor
|
Def Summary | |
def
!
(msg: Msg)
: scala.Unit
Sends msg to this Channel .
|
|
def
!?
(msg: Msg)
: scala.Any
Sends msg to this Channel and
awaits reply.
|
|
def
?
: Msg
|
|
def
forward
(msg: Msg)
: scala.Unit
Forwards msg to this keeping the
last sender as sender instead of self .
|
|
def
poll
: scala.Option[Msg]
|
|
def
printMailbox
: scala.Unit
|
|
def
react
(f: scala.PartialFunction[scala.Any, scala.Unit])
: scala.Nothing
receive for reactors.
|
|
def
reactWithin
(msec: scala.Long)(f: scala.PartialFunction[scala.Any, scala.Unit])
: scala.Nothing
receiveWithin for reactors.
|
|
def
receive
[R]
(f: scala.PartialFunction[Msg, R])
: R
Receives a message from this Channel .
|
|
def
receiveFrom
[R]
(r: scala.actors.Actor)(f: scala.PartialFunction[Msg, R])
: R
|
|
def
receiveWithin
[R]
(msec: scala.Long)(f: scala.PartialFunction[scala.Any, R])
: R
Receives a message from this Channel . If no
message could be received before msec
milliseconds elapsed, the TIMEOUT action is
executed if specified.
|
Def inherited from scala.actors.InputChannel[Msg] | |
react , reactWithin, receive, receiveWithin |
Def inherited from scala.actors.OutputChannel[Msg] | |
! , forward |
Constructor Detail |
Val Detail |
Var Detail |
var
isSuspended
: scala.Boolean
var
receiver
: scala.actors.Actor
var
waitingFor
: (Msg) => scala.Boolean
var
waitingForSender
: scala.actors.Actor
Def Detail |
def
!
(msg: Msg): scala.Unit
msg
to this Channel
.msg
to this Channel
and
awaits reply.
def
?
: Msg
def
forward
(msg: Msg): scala.Unit
msg
to this
keeping the
last sender as sender instead of self
.
def
poll
: scala.Option[Msg]
def
printMailbox
: scala.Unit
def
react
(f: scala.PartialFunction[scala.Any, scala.Unit]): scala.Nothing
receive
for reactors.
def
reactWithin
(msec: scala.Long)(f: scala.PartialFunction[scala.Any, scala.Unit]): scala.Nothing
receiveWithin
for reactors.
def
receive
[R](f: scala.PartialFunction[Msg, R]): R
Channel
.
def
receiveFrom
[R](r: scala.actors.Actor)(f: scala.PartialFunction[Msg, R]): R
def
receiveWithin
[R](msec: scala.Long)(f: scala.PartialFunction[scala.Any, R]): R
Channel
. If no
message could be received before msec
milliseconds elapsed, the TIMEOUT
action is
executed if specified.