org.atmosphere.plugin.rabbitmq
Class RabbitMQConnectionFactory

java.lang.Object
  extended by org.atmosphere.plugin.rabbitmq.RabbitMQConnectionFactory
All Implemented Interfaces:
org.atmosphere.cpr.AtmosphereConfig.ShutdownHook

public class RabbitMQConnectionFactory
extends Object
implements org.atmosphere.cpr.AtmosphereConfig.ShutdownHook

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_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()
           
 
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
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


Copyright © 2015. All Rights Reserved.