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
Afficher le fichier Open project: rogeralsing/akka.net

Private Properties

Свойство Type Description
EnqueueFirst void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat System

ClearStash() public méthode

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

Prepend() public méthode

public Prepend ( IEnumerable envelopes ) : void
envelopes IEnumerable
Résultat void

Stash() public méthode

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
Résultat void

Unstash() public méthode

Unstash the most recently stashed message (top of the message stack.)
public Unstash ( ) : void
Résultat void

UnstashAll() public méthode

Unstash all of the Envelopes in the Stash.
public UnstashAll ( ) : void
Résultat void

UnstashAll() public méthode

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.
Résultat void