public class StoreAndLatchBasicMessageListener<T extends BasicMessage> extends BasicMessageListener<T>
| Constructor and Description |
|---|
StoreAndLatchBasicMessageListener(CountDownLatch latch,
ArrayList<T> messages,
ArrayList<String> errors,
Class<T> basicMessageClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
countDownLatch() |
protected ArrayList<String> |
getErrors() |
protected CountDownLatch |
getLatch() |
protected ArrayList<T> |
getMessages() |
void |
onBasicMessage(T basicMessage) |
protected void |
storeError(Exception exception) |
protected void |
storeMessage(T message) |
onMessagedetermineBasicMessageClass, getBasicMessageClass, getBasicMessageFromMessage, getConsumerConnectionContext, getLog, setConsumerConnectionContextpublic void onBasicMessage(T basicMessage)
onBasicMessage in class BasicMessageListener<T extends BasicMessage>protected CountDownLatch getLatch()
protected void countDownLatch()
protected void storeError(Exception exception)
protected void storeMessage(T message) throws javax.jms.JMSException
javax.jms.JMSExceptionCopyright © 2015 Red Hat, Inc.. All rights reserved.