public class ActiveMQMessageHandler extends Object implements MessageHandler, FailoverEventListener
| Constructor and Description |
|---|
ActiveMQMessageHandler(ConnectionFactoryOptions options,
ActiveMQActivation activation,
TransactionManager tm,
org.apache.activemq.artemis.core.client.impl.ClientSessionInternal session,
ClientSessionFactory cf,
int sessionNr) |
| Modifier and Type | Method and Description |
|---|---|
void |
failoverEvent(FailoverEventType eventType) |
Thread |
interruptConsumer(org.apache.activemq.artemis.utils.FutureLatch future) |
void |
onMessage(ClientMessage message) |
void |
setup() |
void |
start() |
void |
teardown()
Stop the handler
|
public ActiveMQMessageHandler(ConnectionFactoryOptions options, ActiveMQActivation activation, TransactionManager tm, org.apache.activemq.artemis.core.client.impl.ClientSessionInternal session, ClientSessionFactory cf, int sessionNr)
public Thread interruptConsumer(org.apache.activemq.artemis.utils.FutureLatch future)
public void teardown()
public void onMessage(ClientMessage message)
onMessage in interface MessageHandlerpublic void start()
throws ActiveMQException
ActiveMQExceptionpublic void failoverEvent(FailoverEventType eventType)
failoverEvent in interface FailoverEventListenerCopyright © 2016 The Apache Software Foundation. All Rights Reserved.