Releases: GtechGovind/RabbitMQClient
Releases · GtechGovind/RabbitMQClient
RabbitMQClient v0.0.1
Version 1.0.0
-
Connection Management:
- Added connection handling with
ConnectionFactoryconfiguration, supporting host, port, username, password, and virtual host customization. - Added
connectfunction to establish a RabbitMQ connection and open a channel. - Integrated connection shutdown handling via
addShutdownListener, logging shutdown events, and triggering reconnection ifautomaticReconnectis enabled.
- Added connection handling with
-
Automatic Reconnection:
- Added support for automatic reconnection with configurable
reconnectDelayand retry limit, allowing the client to attempt reconnection in case of disconnection.
- Added support for automatic reconnection with configurable
-
Exchange Declaration:
- Implemented
declareExchangefunction, allowing clients to declare RabbitMQ exchanges with customizable parameters such as exchange type, durability, and auto-delete settings.
- Implemented
-
Queue Declaration with TTL:
- Added
declareQueueWithTTLfunction to declare queues with optional message TTL and queue expiration settings. TTL is specified in days, and queue expiration is in years, with additional options for durability and auto-deletion.
- Added
-
Message Publishing:
- Added
sendMessagefunction for publishing messages to a specified exchange with a routing key, supporting various exchange types and routing configurations.
- Added
-
Message Consumption:
- Implemented
consumeMessagesfunction to consume messages from a specified queue. Messages are processed by a user-defined handler, supporting asynchronous message handling.
- Implemented
-
Graceful Closure:
- Added
closefunction to close the RabbitMQ channel and connection gracefully, with logging for closure events.
- Added
-
Builder Pattern:
- Added
Builderinner class to support flexible configuration and instantiation ofRabbitMQClient, including setting host, port, credentials, virtual host, automatic reconnection, and a custom logger.
- Added