Class RabbitMQNotificationPublisher

java.lang.Object
com.reallifedeveloper.common.infrastructure.messaging.RabbitMQNotificationPublisher
All Implemented Interfaces:
NotificationPublisher

public final class RabbitMQNotificationPublisher extends Object implements NotificationPublisher
An implementation of the NotificationPublisher interface that uses RabbiMQ.
Author:
RealLifeDeveloper
  • Constructor Details

    • RabbitMQNotificationPublisher

      public RabbitMQNotificationPublisher(com.rabbitmq.client.ConnectionFactory connectionFactory, ObjectSerializer<String> objectSerializer)
      Creates a new RabbitMQNotificationPublisher that connects to RabbitMQ using the given ConnectionFactory.
      Parameters:
      connectionFactory - the ConnectionFactory to use to create connections to RabbitMQ
      objectSerializer - the ObjectSerializer to use to serialize notifications
  • Method Details