public interface Consumer
| Modifier and Type | Method and Description |
|---|---|
String |
debug() |
void |
disconnect()
disconnect the consumer
|
List<MessageReference> |
getDeliveringMessages() |
Filter |
getFilter() |
HandleStatus |
handle(MessageReference reference)
There was a change on semantic during 2.3 here.
We now first accept the message, and the actual deliver is done as part of proceedDeliver(MessageReference). |
void |
proceedDeliver(MessageReference reference)
This will proceed with the actual delivery.
|
String |
toManagementString()
This method will create a string representation meant for management operations.
|
HandleStatus handle(MessageReference reference) throws Exception
proceedDeliver(MessageReference). This is to avoid holding a lock on the queues while
the delivery is being accomplished To avoid a lock on the queue in case of misbehaving
consumers.
This should return busy if handle is called before proceed deliver is called
reference - Exceptionvoid proceedDeliver(MessageReference reference) throws Exception
ExceptionFilter getFilter()
List<MessageReference> getDeliveringMessages()
String debug()
String toManagementString()
void disconnect()
Copyright © 2018 JBoss by Red Hat. All rights reserved.