Skip to content
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

DistributedPubSub: make query to count local subscribers for topic public #6856

Merged
merged 4 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using System.Collections.Immutable;
using System.Linq;
using Akka.Actor;
using Akka.Annotations;
using Akka.Event;
using Akka.Routing;

Expand Down Expand Up @@ -42,9 +43,10 @@ private Count() { }
}

/// <summary>
/// TBD
/// Get all subscribers for a given topic.
/// </summary>
internal sealed class CountSubscribers
[ApiMayChange]
public sealed class CountSubscribers
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just made this internal class public - left it inside the .Internal namespace though (which I think this fine - it's public but we reserve the right to change it, per our API guidelines: https://getakka.net/community/contributing/api-changes-compatibility.html#akkanet-api-versioning-policy )

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to decorate this class with [ApiMayChange] attribute for documentation purposes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do

{
public string Topic { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,15 @@ namespace Akka.Cluster.Tools.PublishSubscribe
public override string ToString() { }
}
}
namespace Akka.Cluster.Tools.PublishSubscribe.Internal
{
[Akka.Annotations.ApiMayChangeAttribute()]
public sealed class CountSubscribers
{
public CountSubscribers(string topic) { }
public string Topic { get; }
}
}
namespace Akka.Cluster.Tools.PublishSubscribe.Serialization
{
public class DistributedPubSubMessageSerializer : Akka.Serialization.SerializerWithStringManifest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,15 @@ namespace Akka.Cluster.Tools.PublishSubscribe
public override string ToString() { }
}
}
namespace Akka.Cluster.Tools.PublishSubscribe.Internal
{
[Akka.Annotations.ApiMayChangeAttribute()]
public sealed class CountSubscribers
{
public CountSubscribers(string topic) { }
public string Topic { get; }
}
}
namespace Akka.Cluster.Tools.PublishSubscribe.Serialization
{
public class DistributedPubSubMessageSerializer : Akka.Serialization.SerializerWithStringManifest
Expand Down
Loading