public abstract class ConnectionConsumerTransactionStrategy extends Object implements SolCloseableIF
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionConsumerTransactionStrategy.InitProperties |
static class |
ConnectionConsumerTransactionStrategy.TransactionState |
| Constructor and Description |
|---|
ConnectionConsumerTransactionStrategy(ConnectionConsumerTransactionStrategy.InitProperties iprop) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterDelivery() |
void |
afterPollLoop() |
void |
close() |
void |
closeConsumer() |
void |
createConsumer() |
Consumer |
getConsumer() |
ConnectionConsumerTransactionStrategy.TransactionState |
getTxState() |
void |
onCommit(Collection<Message> msgs) |
void |
onMessage(Collection<Message> msgs) |
void |
onRollback(Collection<Message> msgs) |
void |
processRollbackTaskOnPollerThread()
Process any rollback steps that need to happen on the message poller thread.
|
void |
reset() |
void |
start() |
void |
stop() |
boolean |
tryWaitForUnacked(int millis) |
public ConnectionConsumerTransactionStrategy(ConnectionConsumerTransactionStrategy.InitProperties iprop)
public void reset()
public void onMessage(Collection<Message> msgs) throws JMSException
JMSExceptionpublic void onCommit(Collection<Message> msgs) throws JMSException
JMSExceptionpublic void onRollback(Collection<Message> msgs) throws JMSException
JMSExceptionpublic void afterDelivery()
throws JMSException
JMSExceptionpublic boolean tryWaitForUnacked(int millis)
throws InterruptedException
InterruptedExceptionpublic void createConsumer()
throws JMSException
JMSExceptionpublic Consumer getConsumer()
public void start()
throws JMSException
JMSExceptionpublic void stop()
throws JMSException
JMSExceptionpublic void closeConsumer()
throws JMSException
JMSExceptionpublic void processRollbackTaskOnPollerThread()
throws JMSException
JMSExceptionpublic ConnectionConsumerTransactionStrategy.TransactionState getTxState()
public void afterPollLoop()
throws JMSException
JMSExceptionpublic void close()
throws JMSException
close in interface SolCloseableIFJMSExceptionCopyright 2004-2020 Solace Corporation. All rights reserved.