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

Add RoutingType docs #127

Merged
merged 1 commit into from
Jun 9, 2024
Merged
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
17 changes: 17 additions & 0 deletions src/ArtemisNetCoreClient/RoutingType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
namespace ActiveMQ.Artemis.Core.Client;

/// <summary>
/// This enum represents the routing types that dictate how messages are handled by an address in the Apache ActiveMQ Artemis.
/// </summary>
public enum RoutingType : byte
{
/// <summary>
/// 'Multicast' routing type: Used when a message should be delivered to multiple queues.
/// Each bound queue at the address receives a copy of the message. This is ideal for
/// scenarios where the same message needs to be processed by different consumers
/// independently, akin to a publish-subscribe model.
/// </summary>
Multicast = 0,

/// <summary>
/// 'Anycast' routing type: Used when a message should be delivered to one of the many
/// queues bound to an address, typically chosen in a round-robin fashion. This routing
/// type is suitable for point-to-point communication where a message is intended for
/// only one consumer among potentially many. It ensures that each message is delivered
/// to exactly one of the available queues attached to the address.
/// </summary>
Anycast = 1
}
Loading