public class FederationDownstream extends AbstractFederationStream implements SessionFailureListener
| Modifier and Type | Field and Description |
|---|---|
static String |
FEDERATION_DOWNSTREAM_NAME |
connection, federatedAddressMap, federatedQueueMap, federation, name, server| Constructor and Description |
|---|
FederationDownstream(ActiveMQServer server,
Federation federation,
String name,
FederationDownstreamConfiguration config,
FederationConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeReconnect(ActiveMQException exception)
Notifies that a connection has failed due to the specified exception.
|
void |
connectionFailed(ActiveMQException exception,
boolean failedOver)
Notifies that a connection has failed due to the specified exception.
|
void |
connectionFailed(ActiveMQException exception,
boolean failedOver,
String scaleDownTargetNodeID)
Notifies that a connection has failed due to the specified exception.
|
void |
deploy(FederationConfiguration federationConfiguration) |
void |
start() |
void |
stop() |
void |
undeploy() |
callFederationStreamStartedPlugins, callFederationStreamStoppedPlugins, getConfig, getConnection, getFederation, getName, getPassword, getPriorityAdjustment, getUserpublic static final String FEDERATION_DOWNSTREAM_NAME
public FederationDownstream(ActiveMQServer server, Federation federation, String name, FederationDownstreamConfiguration config, FederationConnection connection)
public void start()
start in interface FederationStreamstart in class AbstractFederationStreampublic void stop()
stop in interface FederationStreamstop in class AbstractFederationStreampublic void deploy(FederationConfiguration federationConfiguration) throws ActiveMQException
ActiveMQExceptionpublic void undeploy()
public void connectionFailed(ActiveMQException exception, boolean failedOver)
FailureListenerconnectionFailed in interface FailureListenerexception - exception which has caused the connection to failpublic void connectionFailed(ActiveMQException exception, boolean failedOver, String scaleDownTargetNodeID)
FailureListenerconnectionFailed in interface FailureListenerexception - exception which has caused the connection to failscaleDownTargetNodeID - the ID of the node to which messages are scaling downpublic void beforeReconnect(ActiveMQException exception)
SessionFailureListenerbeforeReconnect in interface SessionFailureListenerexception - exception which has caused the connection to failCopyright © 2025 JBoss by Red Hat. All rights reserved.