public class AMQPTransportConnectionFactoryManager extends Object
AMQPTransportConnectionFactory
.Constructor and Description |
---|
AMQPTransportConnectionFactoryManager() |
Modifier and Type | Method and Description |
---|---|
void |
addConnectionFactories(org.apache.axis2.description.ParameterInclude transportInDescription,
ExecutorService es)
Add the list of defined connection factories definition.
|
void |
addConnectionFactory(org.apache.axis2.description.Parameter parameter,
ExecutorService es)
Add a connection factory definition into store.
|
void |
addConnectionFactory(String name,
AMQPTransportConnectionFactory cf) |
ConcurrentHashMap<String,AMQPTransportConnectionFactory> |
getAllFactories() |
AMQPTransportConnectionFactory |
getConnectionFactory(String name)
Get the connection factory with this name.
|
void |
removeConnectionFactory(String name)
Remove and return the connection factory with this name.
|
void |
shutDownConnectionFactories()
Shutdown the open connections to the broker via the connection factory
|
public AMQPTransportConnectionFactoryManager()
public void addConnectionFactories(org.apache.axis2.description.ParameterInclude transportInDescription, ExecutorService es)
transportInDescription
- The connection factory definition in axis2.xmles
- An instance of java.util.concurrent.ExecutorService to use with AMQP connection
factorypublic void addConnectionFactory(org.apache.axis2.description.Parameter parameter, ExecutorService es) throws AMQPTransportException
AMQPTransportException
public void addConnectionFactory(String name, AMQPTransportConnectionFactory cf)
public AMQPTransportConnectionFactory getConnectionFactory(String name) throws AMQPTransportException
name
- connection factory name.AMQPTransportException
- throws in case of an error.public void removeConnectionFactory(String name) throws AMQPTransportException
name
- connection factory name.AMQPTransportException
- throws in case of an error.public void shutDownConnectionFactories() throws AMQPTransportException
AMQPTransportException
public ConcurrentHashMap<String,AMQPTransportConnectionFactory> getAllFactories()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.