|Modifier and Type||Method and Description|
This method is used both by client connector creation and server connection creation through acceptors.
Called when a connection is destroyed.
Called when an error occurs on the connection.
void connectionCreated(org.apache.activemq.artemis.core.server.ActiveMQComponent component, Connection connection, ProtocolClass protocol)
componentparameter is normally passed as
Leaving this method here and adding a different one at
ServerConnectionLifeCycleListener is a compromise for a reasonable split between the
activemq-server and activemq-client packages while avoiding to pull too much into activemq-core.
The pivotal point keeping us from removing the method is
ConnectorFactory and the
usage of it.
component- This will probably be an
Acceptorand only used on the server side.
connection- the connection that has been created
protocol- the messaging protocol type this connection uses
void connectionDestroyed(Object connectionID)
connectionID- the connection being destroyed.
void connectionException(Object connectionID, ActiveMQException me)
connectionID- the id of the connection.
me- the exception.
void connectionReadyForWrites(Object connectionID, boolean ready)
Copyright © 2020 The Apache Software Foundation. All rights reserved.