Class AMQPConnectionCallback
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.broker.AMQPConnectionCallback
-
- All Implemented Interfaces:
CloseListener,FailureListener
public class AMQPConnectionCallback extends Object implements FailureListener, CloseListener
-
-
Field Summary
Fields Modifier and Type Field Description protected AMQPConnectionContextamqpConnectionprotected ActiveMQProtonRemotingConnectionprotonConnectionDelegate
-
Constructor Summary
Constructors Constructor Description AMQPConnectionCallback(ProtonProtocolManager manager, Connection connection, Executor sessionExecutor, ActiveMQServer server)
-
Method Summary
-
-
-
Field Detail
-
protonConnectionDelegate
protected ActiveMQProtonRemotingConnection protonConnectionDelegate
-
amqpConnection
protected AMQPConnectionContext amqpConnection
-
-
Constructor Detail
-
AMQPConnectionCallback
public AMQPConnectionCallback(ProtonProtocolManager manager, Connection connection, Executor sessionExecutor, ActiveMQServer server)
-
-
Method Detail
-
getTransportConnection
public Connection getTransportConnection()
-
getSaslMechanisms
public String[] getSaslMechanisms()
-
getServerSASL
public ServerSASL getServerSASL(String mechanism)
-
isSupportsAnonymous
public boolean isSupportsAnonymous()
-
close
public void close()
-
setConnection
public void setConnection(AMQPConnectionContext connection)
-
getConnection
public AMQPConnectionContext getConnection()
-
getProtonConnectionDelegate
public ActiveMQProtonRemotingConnection getProtonConnectionDelegate()
-
setProtonConnectionDelegate
public void setProtonConnectionDelegate(ActiveMQProtonRemotingConnection protonConnectionDelegate)
-
onTransport
public void onTransport(io.netty.buffer.ByteBuf byteBuf, AMQPConnectionContext amqpConnection)
-
isWritable
public boolean isWritable(ReadyListener readyListener)
-
createSessionCallback
public AMQPSessionCallback createSessionCallback(AMQPConnectionContext connection)
-
sendSASLSupported
public void sendSASLSupported()
-
validateConnection
public boolean validateConnection(org.apache.qpid.proton.engine.Connection connection, SASLResult saslResult)
-
connectionClosed
public void connectionClosed()
- Specified by:
connectionClosedin interfaceCloseListener
-
connectionFailed
public void connectionFailed(ActiveMQException exception, boolean failedOver)
- Specified by:
connectionFailedin interfaceFailureListener
-
connectionFailed
public void connectionFailed(ActiveMQException exception, boolean failedOver, String scaleDownTargetNodeID)
- Specified by:
connectionFailedin interfaceFailureListener
-
newTransaction
public org.apache.qpid.proton.amqp.Binary newTransaction()
-
getTransaction
public Transaction getTransaction(org.apache.qpid.proton.amqp.Binary txid, boolean remove) throws ActiveMQAMQPException
- Throws:
ActiveMQAMQPException
-
newXID
protected XidImpl newXID()
-
newXID
protected XidImpl newXID(byte[] bytes)
-
getFailoverList
public URI getFailoverList()
-
invokeIncomingInterceptors
public String invokeIncomingInterceptors(AMQPMessage message, ActiveMQProtonRemotingConnection connection)
-
invokeOutgoingInterceptors
public String invokeOutgoingInterceptors(AMQPMessage message, ActiveMQProtonRemotingConnection connection)
-
-