Class AMQPBrokerConnection
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.connect.AMQPBrokerConnection
-
- All Implemented Interfaces:
ActiveMQComponent,BrokerConnection,ActiveMQServerBasePlugin,ActiveMQServerQueuePlugin,BaseConnectionLifeCycleListener<ClientProtocolManager>,ClientConnectionLifeCycleListener
public class AMQPBrokerConnection extends Object implements ClientConnectionLifeCycleListener, ActiveMQServerQueuePlugin, BrokerConnection
-
-
Constructor Summary
Constructors Constructor Description AMQPBrokerConnection(AMQPBrokerConnectionManager bridgeManager, AMQPBrokerConnectConfiguration brokerConnectConfiguration, ProtonProtocolManager protonProtocolManager, ActiveMQServer server, NettyConnector bridgesConnector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCreateQueue(Queue queue)voidconnectionCreated(ActiveMQComponent component, Connection connection, ClientProtocolManager protocol)voidconnectionDestroyed(Object connectionID)voidconnectionException(Object connectionID, ActiveMQException me)voidconnectionReadyForWrites(Object connectionID, boolean ready)voidcreateLink(Queue queue, AMQPBrokerConnectionElement connectionElement)voiddisconnect()protected voiderror(Throwable e)protected voiderror(Throwable e, int retryCounter)NettyConnectiongetConnection()StringgetName()StringgetProtocol()booleanisConnecting()booleanisStarted()voidretryConnection()voidstart()voidstop()voidvalidateMatching(Queue queue, AMQPBrokerConnectionElement connectionElement)protected booleanverifyOfferedCapabilities(org.apache.qpid.proton.engine.Sender sender, org.apache.qpid.proton.amqp.Symbol[] capabilities)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBasePlugin
init, registered, unregistered
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerQueuePlugin
afterDestroyQueue, afterExpiryScan, beforeCreateQueue, beforeCreateQueue, beforeDestroyQueue, beforeDestroyQueue, beforeExpiryScan
-
-
-
-
Constructor Detail
-
AMQPBrokerConnection
public AMQPBrokerConnection(AMQPBrokerConnectionManager bridgeManager, AMQPBrokerConnectConfiguration brokerConnectConfiguration, ProtonProtocolManager protonProtocolManager, ActiveMQServer server, NettyConnector bridgesConnector)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceBrokerConnection
-
getProtocol
public String getProtocol()
- Specified by:
getProtocolin interfaceBrokerConnection
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceActiveMQComponent
-
isConnecting
public boolean isConnecting()
-
stop
public void stop()
- Specified by:
stopin interfaceActiveMQComponent
-
start
public void start() throws Exception- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
getConnection
public NettyConnection getConnection()
-
afterCreateQueue
public void afterCreateQueue(Queue queue)
- Specified by:
afterCreateQueuein interfaceActiveMQServerQueuePlugin
-
validateMatching
public void validateMatching(Queue queue, AMQPBrokerConnectionElement connectionElement)
-
createLink
public void createLink(Queue queue, AMQPBrokerConnectionElement connectionElement)
-
retryConnection
public void retryConnection()
-
verifyOfferedCapabilities
protected boolean verifyOfferedCapabilities(org.apache.qpid.proton.engine.Sender sender, org.apache.qpid.proton.amqp.Symbol[] capabilities)
-
error
protected void error(Throwable e)
-
error
protected void error(Throwable e, int retryCounter)
-
connectionCreated
public void connectionCreated(ActiveMQComponent component, Connection connection, ClientProtocolManager protocol)
- Specified by:
connectionCreatedin interfaceBaseConnectionLifeCycleListener<ClientProtocolManager>
-
connectionDestroyed
public void connectionDestroyed(Object connectionID)
- Specified by:
connectionDestroyedin interfaceBaseConnectionLifeCycleListener<ClientProtocolManager>
-
connectionException
public void connectionException(Object connectionID, ActiveMQException me)
- Specified by:
connectionExceptionin interfaceBaseConnectionLifeCycleListener<ClientProtocolManager>
-
connectionReadyForWrites
public void connectionReadyForWrites(Object connectionID, boolean ready)
- Specified by:
connectionReadyForWritesin interfaceBaseConnectionLifeCycleListener<ClientProtocolManager>
-
-