Click or drag to resize
Akka.NETIInboxable Interface
IInboxable is an actor-like object to be listened by external objects. It can watch other actors lifecycle and contains inner actor, which could be passed as reference to other actors.

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public interface IInboxable : ICanWatch

The IInboxable type exposes the following members.

Properties
  NameDescription
Public propertyReceiver
Get a reference to internal actor. It may be for example registered in event stream.
Top
Methods
  NameDescription
Public methodReceive
Receive a next message from current IInboxable with default timeout. This call will return immediately, if the internal actor previously received a message, or will block until it'll receive a message.
Public methodReceive(TimeSpan)
Receive a next message from current IInboxable. This call will return immediately, if the internal actor previously received a message, or will block for time specified by timeout until it'll receive a message.
Public methodReceiveAsync
TBD
Public methodReceiveAsync(TimeSpan)
TBD
Public methodReceiveWhere(PredicateObject)
Receive a next message satisfying specified predicate under default timeout.
Public methodReceiveWhere(PredicateObject, TimeSpan)
Receive a next message satisfying specified predicate under provided timeout.
Public methodSend
Makes an internal actor act as a proxy of a given message, which is sent to a given target actor. It means, that all target's replies will be sent to current inbox instead.
Public methodUnwatch
Stops monitoring the subject for termination.
(Inherited from ICanWatch.)
Public methodWatch
Monitors the specified actor for termination. When the subject terminates the instance watching will receive a Terminated message.
Remarks
Note that if the Terminated message isn't handled by the actor, by default the actor will crash by throwing a DeathPactException. To change the default behavior, override Unhandled(Object).
(Inherited from ICanWatch.)
Top
See Also