public class AMQPTransportConnectionFactory extends Object
<transportReceiver name="amqp" class="org.wso2.carbon.transports.amqp.AMQPTransportListener">
<parameter name="example-connection-factory1" locked="false">
<parameter name="transport.amqp.Uri" locked="false">amqp://userName:password@hostName:portNumber/virtualHost</parameter>
<parameter name="transport.amqp.BrokerList" locked="false">hostName1:portNumber1,hostName2:portNumber2,hostName3:portNumber3</parameter>
</parameter>
<parameter name="example-connection-factory2" locked="false">
<parameter name="example-connection-factory1" locked="false">
<parameter name="transport.amqp.Uri" locked="false">amqp://userName:password@hostName:portNumber/virtualHost</parameter>
<parameter name="transport.amqp.BrokerList" locked="false">hostName1:portNumber1,hostName2:portNumber2,hostName3:portNumber3</parameter>
</parameter>
<parameter name="default" locked="false">
<parameter name="example-connection-factory1" locked="false">
<parameter name="transport.amqp.Uri" locked="false">amqp://userName:password@hostName:portNumber/virtualHost</parameter>
<parameter name="transport.amqp.BrokerList" locked="false">hostName1:portNumber1,hostName2:portNumber2,hostName3:portNumber3</parameter>
</parameter>
</transportReceiver>
Constructor and Description |
---|
AMQPTransportConnectionFactory(Map<String,String> parameters,
ExecutorService es) |
AMQPTransportConnectionFactory(org.apache.axis2.description.Parameter parameter,
ExecutorService es) |
Modifier and Type | Method and Description |
---|---|
com.rabbitmq.client.Channel |
getChannel()
Get the channel in this connection.
|
com.rabbitmq.client.Connection |
getConnection()
Get the connection
|
String |
getName()
Return the name of this connection factory(the name given in axis2.xml)
|
Map<String,String> |
getParameters()
Returns the list of all parameters in this connection factory.
|
String |
getParameterValue(String parameterName)
Returns the value of parameter.
|
void |
shutDownChannel()
Shutdown this channel.
|
void |
shutDownConnection()
Shutdown this connection.
|
public AMQPTransportConnectionFactory(Map<String,String> parameters, ExecutorService es) throws AMQPTransportException
AMQPTransportException
public AMQPTransportConnectionFactory(org.apache.axis2.description.Parameter parameter, ExecutorService es) throws AMQPTransportException
AMQPTransportException
public void shutDownConnection() throws IOException
IOException
public void shutDownChannel() throws IOException
IOException
public com.rabbitmq.client.Channel getChannel()
public com.rabbitmq.client.Connection getConnection()
public String getName()
public String getParameterValue(String parameterName)
parameterName
- name of the parameter.Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.