Skip to content

Releases: GtechGovind/RabbitMQClient

RabbitMQClient v0.0.1

11 Nov 13:43
0d395d5
Compare
Choose a tag to compare

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 if automaticReconnect is enabled.
  • Automatic Reconnection:

    • Added support for automatic reconnection with configurable reconnectDelay and retry limit, allowing the client to attempt reconnection in case of disconnection.
  • Exchange Declaration:

    • Implemented declareExchange function, allowing clients to declare RabbitMQ exchanges with customizable parameters such as exchange type, durability, and auto-delete settings.
  • 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.
  • Message Publishing:

    • Added sendMessage function for publishing messages to a specified exchange with a routing key, supporting various exchange types and routing configurations.
  • Message Consumption:

    • Implemented consumeMessages function to consume messages from a specified queue. Messages are processed by a user-defined handler, supporting asynchronous message handling.
  • Graceful Closure:

    • Added close function to close the RabbitMQ channel and connection gracefully, with logging for closure events.
  • Builder Pattern:

    • Added Builder inner class to support flexible configuration and instantiation of RabbitMQClient, including setting host, port, credentials, virtual host, automatic reconnection, and a custom logger.