Class RabbitMQConnectionFactory

  • All Implemented Interfaces:
    com.rabbitmq.client.ShutdownListener, java.util.EventListener, org.atmosphere.cpr.AtmosphereConfig.ShutdownHook

    public class RabbitMQConnectionFactory
    extends java.lang.Object
    implements org.atmosphere.cpr.AtmosphereConfig.ShutdownHook, com.rabbitmq.client.ShutdownListener
    RabbitMQ Connection Factory.
    Author:
    Thibault Normand, Jean-Francois Arcand
    • Field Detail

      • PARAM_HOST

        public static final java.lang.String PARAM_HOST
      • PARAM_USER

        public static final java.lang.String PARAM_USER
      • PARAM_PASS

        public static final java.lang.String PARAM_PASS
      • PARAM_EXCHANGE_TYPE

        public static final java.lang.String PARAM_EXCHANGE_TYPE
      • PARAM_VHOST

        public static final java.lang.String PARAM_VHOST
      • PARAM_PORT

        public static final java.lang.String PARAM_PORT
      • PARAM_USE_SSL

        public static final java.lang.String PARAM_USE_SSL
    • Constructor Detail

      • RabbitMQConnectionFactory

        public RabbitMQConnectionFactory​(org.atmosphere.cpr.AtmosphereConfig config)
    • Method Detail

      • exchangeName

        public java.lang.String exchangeName()
      • channel

        public com.rabbitmq.client.Channel channel()
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface org.atmosphere.cpr.AtmosphereConfig.ShutdownHook
      • shutdownCompleted

        public void shutdownCompleted​(com.rabbitmq.client.ShutdownSignalException cause)
        Specified by:
        shutdownCompleted in interface com.rabbitmq.client.ShutdownListener