C# Class Akka.Actor.Internal.AbstractStash

INTERNAL Abstract base class for stash support Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.
Inheritance: IStash
Mostra file Open project: rogeralsing/akka.net

Private Properties

Property Type Description
EnqueueFirst void

Public Methods

Method Description
ClearStash ( ) : IEnumerable

Eliminates the contents of the IStash, and returns the previous contents of the messages.

Prepend ( IEnumerable envelopes ) : void
Stash ( ) : void

Stashes the current message in the actor's state.

Unstash ( ) : void

Unstash the most recently stashed message (top of the message stack.)

UnstashAll ( ) : void

Unstash all of the Envelopes in the Stash.

UnstashAll ( bool>.Func predicate ) : void

Unstash all of the Envelopes in the Stash.

Protected Methods

Method Description
AbstractStash ( IActorContext context, int capacity = 100 ) : System

INTERNAL Abstract base class for stash support Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.

Private Methods

Method Description
EnqueueFirst ( Envelope msg ) : void

Enqueues msg at the first position in the mailbox. If the message contained in the envelope is a Terminated message, it will be ensured that it can be re-received by the actor.

Method Details

AbstractStash() protected method

INTERNAL Abstract base class for stash support Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.
protected AbstractStash ( IActorContext context, int capacity = 100 ) : System
context IActorContext
capacity int
return System

ClearStash() public method

Eliminates the contents of the IStash, and returns the previous contents of the messages.
public ClearStash ( ) : IEnumerable
return IEnumerable

Prepend() public method

public Prepend ( IEnumerable envelopes ) : void
envelopes IEnumerable
return void

Stash() public method

Stashes the current message in the actor's state.
Thrown if we attempt to stash the same message more than once. Thrown in the event that we're using a /// for the and we've exceeded capacity.
public Stash ( ) : void
return void

Unstash() public method

Unstash the most recently stashed message (top of the message stack.)
public Unstash ( ) : void
return void

UnstashAll() public method

Unstash all of the Envelopes in the Stash.
public UnstashAll ( ) : void
return void

UnstashAll() public method

Unstash all of the Envelopes in the Stash.
public UnstashAll ( bool>.Func predicate ) : void
predicate bool>.Func A predicate function to determine which messages to select.
return void