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
| Improve this Doc 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
| Improve this Doc 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 |