You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename Consumer Feature to Consumer SettleStrategy (#82)
* Renames the consumer “feature” configuration to a settle-strategy like the same naming used by other AMQP 1.0 clients.
Changes:
* Replace ConsumerFeature/ConsumerOptions.Feature with ConsumerSettleStrategy/ConsumerOptions.SettleStrategy and rename DefaultSettle to ExplicitSettle.
* Replace RequesterOptions.DirectReplyTo bool with RequesterOptions.SettleStrategy ConsumerSettleStrategy.
Update tests, examples, AGENTS guidance, and changelog to reflect the new API names.
---------
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: AGENTS.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,10 @@ docs/examples/ # Example code demonstrating usage
66
66
-`initialCredits()` - Initial credits (defaults to 256)
67
67
-`linkFilters()` - Link filters for stream consumers
68
68
-`id()` - Consumer ID
69
-
-`isDirectReplyToEnable()` - Enable direct reply-to for RPC
69
+
-`validate()` - Validates the configured consumer options
70
+
-`isDirectReplyToEnable()` - Indicates whether Direct Reply-To is enabled for this consumer
71
+
-`preSettled()` - Indicates whether the consumer operates in pre-settled mode
72
+
- Settle strategy is configured via `ConsumerOptions.SettleStrategy` or `RequesterOptions.SettleStrategy` using the `ConsumerSettleStrategy` enum: `ExplicitSettle`, `DirectReplyTo`, `PreSettled`
-**RequesterOptions**: Replaced `DirectReplyTo bool` with `SettleStrategy ConsumerSettleStrategy`. Use `SettleStrategy: rabbitmqamqp.DirectReplyTo` for direct-reply-to, or leave zero value for default (dedicated reply queue). Aligns consumer/requester configuration with other AMQP 1.0 clients.
12
+
-**ConsumerOptions / amqp_types**: Renamed `ConsumerFeature` to `ConsumerSettleStrategy`, `DefaultSettle` to `ExplicitSettle`, and `Feature` field to `SettleStrategy`. Aligns with the unified settle strategy API used in other AMQP 1.0 clients.
13
+
10
14
### Added
11
15
- Add WebSocket transport support for AMQP 1.0 connections by @vedanthnyk25 in [#78](https://github.com/rabbitmq/rabbitmq-amqp-go-client/pull/78)
12
16
- Add Sec-WebSocket-Protocol to the HTTP header by @Gsantomaggio in [#79](https://github.com/rabbitmq/rabbitmq-amqp-go-client/pull/79)
0 commit comments