Class FederationDownstream
java.lang.Object
org.apache.activemq.artemis.core.server.federation.AbstractFederationStream
org.apache.activemq.artemis.core.server.federation.FederationDownstream
- All Implemented Interfaces:
SessionFailureListener,FailureListener,FederationStream
public class FederationDownstream
extends AbstractFederationStream
implements SessionFailureListener
-
Field Summary
FieldsFields inherited from class org.apache.activemq.artemis.core.server.federation.AbstractFederationStream
connection, federatedAddressMap, federatedQueueMap, federation, name, server -
Constructor Summary
ConstructorsConstructorDescriptionFederationDownstream(ActiveMQServer server, Federation federation, String name, FederationDownstreamConfiguration config, FederationConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeReconnect(ActiveMQException exception) Notifies that a connection has failed due to the specified exception.voidconnectionFailed(ActiveMQException exception, boolean failedOver) Notifies that a connection has failed due to the specified exception.voidconnectionFailed(ActiveMQException exception, boolean failedOver, String scaleDownTargetNodeID) Notifies that a connection has failed due to the specified exception.voiddeploy(FederationConfiguration federationConfiguration) voidstart()voidstop()voidundeploy()Methods inherited from class org.apache.activemq.artemis.core.server.federation.AbstractFederationStream
callFederationStreamStartedPlugins, callFederationStreamStoppedPlugins, getConfig, getConnection, getFederation, getName, getPassword, getPriorityAdjustment, getUser
-
Field Details
-
FEDERATION_DOWNSTREAM_NAME
- See Also:
-
-
Constructor Details
-
FederationDownstream
public FederationDownstream(ActiveMQServer server, Federation federation, String name, FederationDownstreamConfiguration config, FederationConnection connection)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceFederationStream- Overrides:
startin classAbstractFederationStream
-
stop
public void stop()- Specified by:
stopin interfaceFederationStream- Overrides:
stopin classAbstractFederationStream
-
deploy
- Throws:
ActiveMQException
-
undeploy
public void undeploy() -
connectionFailed
Description copied from interface:FailureListenerNotifies that a connection has failed due to the specified exception.- Specified by:
connectionFailedin interfaceFailureListener- Parameters:
exception- exception which has caused the connection to fail
-
connectionFailed
public void connectionFailed(ActiveMQException exception, boolean failedOver, String scaleDownTargetNodeID) Description copied from interface:FailureListenerNotifies that a connection has failed due to the specified exception.- Specified by:
connectionFailedin interfaceFailureListener- Parameters:
exception- exception which has caused the connection to failscaleDownTargetNodeID- the ID of the node to which messages are scaling down
-
beforeReconnect
Description copied from interface:SessionFailureListenerNotifies that a connection has failed due to the specified exception.This method is called before the session attempts to reconnect/failover.
- Specified by:
beforeReconnectin interfaceSessionFailureListener- Parameters:
exception- exception which has caused the connection to fail
-