Package org.atmosphere.plugin.rabbitmq
Class RabbitMQConnectionFactory
- java.lang.Object
-
- org.atmosphere.plugin.rabbitmq.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.ShutdownListenerRabbitMQ Connection Factory.- Author:
- Thibault Normand, Jean-Francois Arcand
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAM_EXCHANGE_TYPEstatic java.lang.StringPARAM_HOSTstatic java.lang.StringPARAM_PASSstatic java.lang.StringPARAM_PORTstatic java.lang.StringPARAM_USE_SSLstatic java.lang.StringPARAM_USERstatic java.lang.StringPARAM_VHOST
-
Constructor Summary
Constructors Constructor Description RabbitMQConnectionFactory(org.atmosphere.cpr.AtmosphereConfig config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.rabbitmq.client.Channelchannel()java.lang.StringexchangeName()static RabbitMQConnectionFactorygetFactory(org.atmosphere.cpr.AtmosphereConfig config)voidshutdown()voidshutdownCompleted(com.rabbitmq.client.ShutdownSignalException cause)
-
-
-
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
-
-
Method Detail
-
getFactory
public static final RabbitMQConnectionFactory getFactory(org.atmosphere.cpr.AtmosphereConfig config)
-
exchangeName
public java.lang.String exchangeName()
-
channel
public com.rabbitmq.client.Channel channel()
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceorg.atmosphere.cpr.AtmosphereConfig.ShutdownHook
-
shutdownCompleted
public void shutdownCompleted(com.rabbitmq.client.ShutdownSignalException cause)
- Specified by:
shutdownCompletedin interfacecom.rabbitmq.client.ShutdownListener
-
-