-
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
Deprecate ClusterSingleton.Init()
and add missing singleton feature to ClusterSingletonSettings
#7387
Deprecate ClusterSingleton.Init()
and add missing singleton feature to ClusterSingletonSettings
#7387
Conversation
@Arkatufus looks like API approvals are missing |
/// <summary> | ||
/// Returns default HOCON configuration for the cluster singleton. | ||
/// </summary> | ||
/// <returns>TBD</returns> |
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.
Remove the TBD
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.
Done
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.
Need to add API approvals and do one other minor bit of cleanup
"Akka.Cluster.Tools.Singleton.reference.conf"); | ||
} | ||
|
||
// Cache for singleton proxies, remove in v1.6 | ||
private readonly ConcurrentDictionary<string, IActorRef> _proxies = new(); |
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.
Yeah I agree we don't really need a cache for this - that's a little too clever for its own good.
@@ -40,6 +54,10 @@ public ClusterSingleton(ExtendedActorSystem system) | |||
/// <para>If there already is a proxy running for the given `singletonName` on this node, an <see cref="IActorRef"/> to that is returned.</para> | |||
/// </summary> | |||
/// <returns>A proxy actor that can be used to communicate with the singleton in the cluster</returns> | |||
[Obsolete("This convenience method is deprecated and will be removed in v1.6, " + | |||
"please use ClusterSingletonManager.Props and ClusterSingletonProxy.Props directly instead. " + | |||
"See https://getakka.net/community/whats-new/akkadotnet-v1.5-upgrade-advisories.html#upgrading-to-akkanet-v1532. " + |
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
Updated the API Approval list |
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
Changes
ClusterSingleton.Init()
method and all of its supporting classesClusterSingletonSettings