Class FederatedQueueConsumerImpl
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumerImpl
-
- All Implemented Interfaces:
MessageHandler,SessionFailureListener,FailureListener,FederatedQueueConsumer
public class FederatedQueueConsumerImpl extends Object implements FederatedQueueConsumer, SessionFailureListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFederatedQueueConsumerImpl.ClientSessionCallback
-
Field Summary
-
Fields inherited from interface org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer
FEDERATION_NAME, FEDERATION_UPSTREAM_NAME
-
-
Constructor Summary
Constructors Constructor Description FederatedQueueConsumerImpl(Federation federation, ActiveMQServer server, Transformer transformer, FederatedConsumerKey key, FederationUpstream upstream, FederatedQueueConsumerImpl.ClientSessionCallback clientSessionCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeReconnect(ActiveMQException exception)voidclose()voidconnectionFailed(ActiveMQException exception, boolean failedOver)voidconnectionFailed(ActiveMQException exception, boolean failedOver, String scaleDownTargetNodeID)intdecrementCount()ClientSessiongetClientSession()ScheduledFuturegetCurrentConnectTask()FederationgetFederation()FederationUpstreamgetFederationUpstream()FederatedConsumerKeygetKey()intincrementCount()voidonMessage(ClientMessage clientMessage)voidstart()
-
-
-
Constructor Detail
-
FederatedQueueConsumerImpl
public FederatedQueueConsumerImpl(Federation federation, ActiveMQServer server, Transformer transformer, FederatedConsumerKey key, FederationUpstream upstream, FederatedQueueConsumerImpl.ClientSessionCallback clientSessionCallback)
-
-
Method Detail
-
getFederationUpstream
public FederationUpstream getFederationUpstream()
- Specified by:
getFederationUpstreamin interfaceFederatedQueueConsumer
-
getFederation
public Federation getFederation()
- Specified by:
getFederationin interfaceFederatedQueueConsumer
-
getKey
public FederatedConsumerKey getKey()
- Specified by:
getKeyin interfaceFederatedQueueConsumer
-
getClientSession
public ClientSession getClientSession()
- Specified by:
getClientSessionin interfaceFederatedQueueConsumer
-
incrementCount
public int incrementCount()
- Specified by:
incrementCountin interfaceFederatedQueueConsumer
-
decrementCount
public int decrementCount()
- Specified by:
decrementCountin interfaceFederatedQueueConsumer
-
start
public void start()
- Specified by:
startin interfaceFederatedQueueConsumer
-
close
public void close()
- Specified by:
closein interfaceFederatedQueueConsumer
-
onMessage
public void onMessage(ClientMessage clientMessage)
- Specified by:
onMessagein interfaceMessageHandler
-
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
-
beforeReconnect
public void beforeReconnect(ActiveMQException exception)
- Specified by:
beforeReconnectin interfaceSessionFailureListener
-
getCurrentConnectTask
public ScheduledFuture getCurrentConnectTask()
-
-