private class SimpleMessageListenerContainer.AsyncMessageProcessingConsumer
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
private BlockingQueueConsumer |
consumer |
private java.util.concurrent.CountDownLatch |
start |
private FatalListenerStartupException |
startupException |
| Constructor and Description |
|---|
AsyncMessageProcessingConsumer(BlockingQueueConsumer consumer) |
| Modifier and Type | Method and Description |
|---|---|
FatalListenerStartupException |
getStartupException()
Retrieve the fatal startup exception if this processor completely failed to locate the broker resources it
needed.
|
private void |
logConsumerException(java.lang.Throwable t) |
void |
run() |
private final BlockingQueueConsumer consumer
private final java.util.concurrent.CountDownLatch start
private volatile FatalListenerStartupException startupException
public AsyncMessageProcessingConsumer(BlockingQueueConsumer consumer)
public FatalListenerStartupException getStartupException() throws java.util.concurrent.TimeoutException, java.lang.InterruptedException
java.util.concurrent.TimeoutException - if the consumer hasn't startedjava.lang.InterruptedException - if the consumer startup is interruptedpublic void run()
run in interface java.lang.Runnableprivate void logConsumerException(java.lang.Throwable t)