Interface IInboxable
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.
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public interface IInboxable : ICanWatch
Properties
| Edit this page View SourceReceiver
Get a reference to internal actor. It may be for example registered in event stream.
Declaration
IActorRef Receiver { get; }
Property Value
| Type | Description |
|---|---|
| IActorRef |
Methods
| Edit this page View SourceReceive()
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.
Declaration
object Receive()
Returns
| Type | Description |
|---|---|
| object | TBD |
Receive(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.
Declaration
object Receive(TimeSpan timeout)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | timeout | TBD |
Returns
| Type | Description |
|---|---|
| object | TBD |
ReceiveAsync()
TBD
Declaration
Task<object> ReceiveAsync()
Returns
| Type | Description |
|---|---|
| Task<object> | TBD |
ReceiveAsync(TimeSpan)
TBD
Declaration
Task<object> ReceiveAsync(TimeSpan timeout)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | timeout | TBD |
Returns
| Type | Description |
|---|---|
| Task<object> | TBD |
ReceiveWhere(Predicate<object>)
Receive a next message satisfying specified predicate under default timeout.
Declaration
object ReceiveWhere(Predicate<object> predicate)
Parameters
| Type | Name | Description |
|---|---|---|
| Predicate<object> | predicate | TBD |
Returns
| Type | Description |
|---|---|
| object | TBD |
ReceiveWhere(Predicate<object>, TimeSpan)
Receive a next message satisfying specified predicate under provided timeout.
Declaration
object ReceiveWhere(Predicate<object> predicate, TimeSpan timeout)
Parameters
| Type | Name | Description |
|---|---|---|
| Predicate<object> | predicate | TBD |
| TimeSpan | timeout | TBD |
Returns
| Type | Description |
|---|---|
| object | TBD |
Send(IActorRef, object)
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.
Declaration
void Send(IActorRef target, object message)
Parameters
| Type | Name | Description |
|---|---|---|
| IActorRef | target | TBD |
| object | message | TBD |
Edit this page