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 |
getCurrentThread() |
Thread |
interruptConsumer(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 getCurrentThread()
public Thread interruptConsumer(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 © 2019 The Apache Software Foundation. All Rights Reserved.