org.atmosphere.plugin.rabbitmq
Class RabbitMQConnectionFactory

java.lang.Object
  extended by org.atmosphere.plugin.rabbitmq.RabbitMQConnectionFactory
All Implemented Interfaces:
com.rabbitmq.client.ShutdownListener, EventListener, org.atmosphere.cpr.AtmosphereConfig.ShutdownHook

public class RabbitMQConnectionFactory
extends Object
implements org.atmosphere.cpr.AtmosphereConfig.ShutdownHook, com.rabbitmq.client.ShutdownListener

RabbitMQ Connection Factory.

Author:
Thibault Normand, Jean-Francois Arcand

Field Summary
static String PARAM_EXCHANGE_TYPE
           
static String PARAM_HOST
           
static String PARAM_PASS
           
static String PARAM_PORT
           
static String PARAM_USE_SSL
           
static String PARAM_USER
           
static String PARAM_VHOST
           
 
Constructor Summary
RabbitMQConnectionFactory(org.atmosphere.cpr.AtmosphereConfig config)
           
 
Method Summary
 com.rabbitmq.client.Channel channel()
           
 String exchangeName()
           
static RabbitMQConnectionFactory getFactory(org.atmosphere.cpr.AtmosphereConfig config)
           
 void shutdown()
           
 void shutdownCompleted(com.rabbitmq.client.ShutdownSignalException cause)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_HOST

public static final String PARAM_HOST

PARAM_USER

public static final String PARAM_USER

PARAM_PASS

public static final String PARAM_PASS

PARAM_EXCHANGE_TYPE

public static final String PARAM_EXCHANGE_TYPE

PARAM_VHOST

public static final String PARAM_VHOST

PARAM_PORT

public static final String PARAM_PORT

PARAM_USE_SSL

public static final String PARAM_USE_SSL
Constructor Detail

RabbitMQConnectionFactory

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

getFactory

public static final RabbitMQConnectionFactory getFactory(org.atmosphere.cpr.AtmosphereConfig config)

exchangeName

public 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


Copyright © 2015. All Rights Reserved.