Releases: GtechGovind/RabbitMQClient
Releases · GtechGovind/RabbitMQClient
RabbitMQClient v0.0.1
Version 1.0.0
-
Connection Management:
- Added connection handling with
ConnectionFactory
configuration, supporting host, port, username, password, and virtual host customization. - Added
connect
function to establish a RabbitMQ connection and open a channel. - Integrated connection shutdown handling via
addShutdownListener
, logging shutdown events, and triggering reconnection ifautomaticReconnect
is enabled.
- Added connection handling with
-
Automatic Reconnection:
- Added support for automatic reconnection with configurable
reconnectDelay
and retry limit, allowing the client to attempt reconnection in case of disconnection.
- Added support for automatic reconnection with configurable
-
Exchange Declaration:
- Implemented
declareExchange
function, allowing clients to declare RabbitMQ exchanges with customizable parameters such as exchange type, durability, and auto-delete settings.
- Implemented
-
Queue Declaration with TTL:
- Added
declareQueueWithTTL
function 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
sendMessage
function for publishing messages to a specified exchange with a routing key, supporting various exchange types and routing configurations.
- Added
-
Message Consumption:
- Implemented
consumeMessages
function to consume messages from a specified queue. Messages are processed by a user-defined handler, supporting asynchronous message handling.
- Implemented
-
Graceful Closure:
- Added
close
function to close the RabbitMQ channel and connection gracefully, with logging for closure events.
- Added
-
Builder Pattern:
- Added
Builder
inner class to support flexible configuration and instantiation ofRabbitMQClient
, including setting host, port, credentials, virtual host, automatic reconnection, and a custom logger.
- Added