-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Akka.Actor: tuck all scheduled Tell
messages into IScheduledMsg
envelope
#6461
Merged
Aaronontheweb
merged 11 commits into
akkadotnet:dev
from
Aaronontheweb:scheduler-envelope
Aug 25, 2023
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1879ae4
added `IScheduledTellMsg` interface to make it easier to filter out s…
Aaronontheweb f6e2b67
fixed compilation issue
Aaronontheweb 8556d4d
Merge branch 'dev' into scheduler-envelope
Arkatufus f0f3404
Make sure that IScheduledTellMsg gets unwrapped everywhere
Arkatufus fc41774
Merge branch 'dev' into scheduler-envelope
Arkatufus 27eb383
Move TellInternal changes to the base class MinimalActorRef instead
Arkatufus 9b57dc0
Merge branch 'dev' into scheduler-envelope
Arkatufus 71675f6
Fix FlowSplitWhenSpec async code
Arkatufus 41d716f
Merge branch 'dev' into scheduler-envelope
Arkatufus 9d5ca16
Remove TellInterceptor, move code to ScheduledTell
Arkatufus 2cc8696
Merge branch 'scheduler-envelope' of github.com:Aaronontheweb/akka.ne…
Arkatufus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,47 @@ | ||
//----------------------------------------------------------------------- | ||
// <copyright file="IScheduledMsg.cs" company="Akka.NET Project"> | ||
// Copyright (C) 2009-2023 Lightbend Inc. <http://www.lightbend.com> | ||
// Copyright (C) 2013-2023 .NET Foundation <https://github.com/akkadotnet/akka.net> | ||
// </copyright> | ||
//----------------------------------------------------------------------- | ||
|
||
using Akka.Annotations; | ||
|
||
namespace Akka.Actor.Scheduler; | ||
|
||
/// <summary> | ||
/// Marker interface used to indicate the presence of a scheduled message from the | ||
/// classic scheduler API. | ||
/// </summary> | ||
/// <remarks> | ||
/// Made public so these messages can be filtered for telemetry purposes | ||
/// </remarks> | ||
[InternalApi] | ||
public interface IScheduledTellMsg : IWrappedMessage, INoSerializationVerificationNeeded | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// INTERNAL API | ||
/// </summary> | ||
internal sealed class ScheduledTellMsg : IScheduledTellMsg | ||
{ | ||
public ScheduledTellMsg(object message) | ||
{ | ||
Message = message; | ||
} | ||
public object Message { get; } | ||
} | ||
|
||
/// <summary> | ||
/// INTERNAL API | ||
/// </summary> | ||
internal sealed class ScheduledTellMsgNoInfluenceReceiveTimeout : IScheduledTellMsg, INotInfluenceReceiveTimeout | ||
{ | ||
public ScheduledTellMsgNoInfluenceReceiveTimeout(object message) | ||
{ | ||
Message = message; | ||
} | ||
|
||
public object Message { get; } | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM