forked from akkadotnet/akka.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for
UnrestrictedStash
(akkadotnet#6325)
- Loading branch information
1 parent
8634a6e
commit 35aaa62
Showing
14 changed files
with
138 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
"CRDT", | ||
"datacenter", | ||
"denormalization", | ||
"deque", | ||
"deserialization", | ||
"downstream", | ||
"downstreams", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//----------------------------------------------------------------------- | ||
// <copyright file="IWithUnboundedStash.cs" company="Akka.NET Project"> | ||
// Copyright (C) 2009-2022 Lightbend Inc. <http://www.lightbend.com> | ||
// Copyright (C) 2013-2022 .NET Foundation <https://github.com/akkadotnet/akka.net> | ||
// </copyright> | ||
//----------------------------------------------------------------------- | ||
|
||
using Akka.Dispatch; | ||
|
||
namespace Akka.Actor | ||
{ | ||
/// <summary> | ||
/// The `IWithStash` interface enables an actor to temporarily stash away messages that can not or | ||
/// should not be handled using the actor's current behavior. | ||
/// <para> | ||
/// Note that the `IWithStash` interface can only be used together with actors that have a deque-based | ||
/// mailbox. By default Stash based actors request a Deque based mailbox since the stash | ||
/// interface extends <see cref="IRequiresMessageQueue{T}"/>. | ||
/// </para> | ||
/// You can override the default mailbox provided when `IDequeBasedMessageQueueSemantics` are requested via config: | ||
/// <code> | ||
/// akka.actor.mailbox.requirements { | ||
/// "Akka.Dispatch.IBoundedDequeBasedMessageQueueSemantics" = your-custom-mailbox | ||
/// } | ||
/// </code> | ||
/// Alternatively, you can add your own requirement marker to the actor and configure a mailbox type to be used | ||
/// for your marker. | ||
/// <para> | ||
/// For a `Stash` that also enforces unboundedness of the deque see <see cref="IWithUnboundedStash"/>. For a `Stash` | ||
/// that does not enforce any mailbox type see <see cref="IWithUnrestrictedStash"/>. | ||
/// </para> | ||
/// </summary> | ||
public interface IWithStash : IWithUnrestrictedStash, IRequiresMessageQueue<IDequeBasedMessageQueueSemantics> | ||
{ | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//----------------------------------------------------------------------- | ||
// <copyright file="IWithUnrestrictedStash.cs" company="Akka.NET Project"> | ||
// Copyright (C) 2009-2022 Lightbend Inc. <http://www.lightbend.com> | ||
// Copyright (C) 2013-2022 .NET Foundation <https://github.com/akkadotnet/akka.net> | ||
// </copyright> | ||
//----------------------------------------------------------------------- | ||
|
||
using Akka.Dispatch; | ||
|
||
namespace Akka.Actor | ||
{ | ||
/// <summary> | ||
/// A version of <see cref="IActorStash"/> that does not enforce any mailbox type. The proper mailbox has to be configured | ||
/// manually, and the mailbox should extend the <see cref="IDequeBasedMessageQueueSemantics"/> marker interface. | ||
/// </summary> | ||
public interface IWithUnrestrictedStash : IActorStash | ||
{ | ||
} | ||
} |
Oops, something went wrong.