public class FederatedQueueConsumerImpl extends Object implements FederatedQueueConsumer, SessionFailureListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
FederatedQueueConsumerImpl.ClientSessionCallback |
FEDERATION_NAME, FEDERATION_UPSTREAM_NAME| Constructor and Description |
|---|
FederatedQueueConsumerImpl(Federation federation,
ActiveMQServer server,
Transformer transformer,
FederatedConsumerKey key,
FederationUpstream upstream,
FederatedQueueConsumerImpl.ClientSessionCallback clientSessionCallback) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeReconnect(ActiveMQException exception)
Notifies that a connection has failed due to the specified exception.
|
void |
close() |
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.
|
int |
decrementCount() |
ClientSession |
getClientSession() |
Federation |
getFederation() |
FederationUpstream |
getFederationUpstream() |
FederatedConsumerKey |
getKey() |
int |
incrementCount() |
void |
onMessage(ClientMessage clientMessage)
Notifies the MessageHandler that a message has been received.
|
void |
start() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNextDelaypublic FederatedQueueConsumerImpl(Federation federation, ActiveMQServer server, Transformer transformer, FederatedConsumerKey key, FederationUpstream upstream, FederatedQueueConsumerImpl.ClientSessionCallback clientSessionCallback)
public FederationUpstream getFederationUpstream()
getFederationUpstream in interface FederatedQueueConsumerpublic Federation getFederation()
getFederation in interface FederatedQueueConsumerpublic FederatedConsumerKey getKey()
getKey in interface FederatedQueueConsumerpublic ClientSession getClientSession()
getClientSession in interface FederatedQueueConsumerpublic int incrementCount()
incrementCount in interface FederatedQueueConsumerpublic int decrementCount()
decrementCount in interface FederatedQueueConsumerpublic void start()
start in interface FederatedQueueConsumerpublic void close()
close in interface FederatedQueueConsumerpublic void onMessage(ClientMessage clientMessage)
MessageHandleronMessage in interface MessageHandlerclientMessage - a messagepublic 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 © 2022 JBoss by Red Hat. All rights reserved.