From 7dcddb6f5a6d58f341a9c92f8d49aa62efe3908e Mon Sep 17 00:00:00 2001 From: Havret Date: Sun, 9 Jun 2024 23:53:43 +0200 Subject: [PATCH] Add RoutingType docs --- src/ArtemisNetCoreClient/RoutingType.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/ArtemisNetCoreClient/RoutingType.cs b/src/ArtemisNetCoreClient/RoutingType.cs index ba4f2da..0fd8f93 100644 --- a/src/ArtemisNetCoreClient/RoutingType.cs +++ b/src/ArtemisNetCoreClient/RoutingType.cs @@ -1,7 +1,24 @@ namespace ActiveMQ.Artemis.Core.Client; +/// +/// This enum represents the routing types that dictate how messages are handled by an address in the Apache ActiveMQ Artemis. +/// public enum RoutingType : byte { + /// + /// '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. + /// Multicast = 0, + + /// + /// '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. + /// Anycast = 1 } \ No newline at end of file