public interface Consumer extends PriorityAware
Modifier and Type | Method and Description |
---|---|
String |
debug() |
void |
disconnect()
disconnect the consumer
|
default void |
errorProcessing(Throwable e,
MessageReference reference) |
List<MessageReference> |
getDeliveringMessages() |
Filter |
getFilter() |
default int |
getPriority() |
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.
|
default void |
promptDelivery()
wakes up internal threads to deliver more messages
|
long |
sequentialID()
an unique sequential ID for this consumer
|
default boolean |
supportsDirectDelivery() |
String |
toManagementString()
This method will create a string representation meant for management operations.
|
default boolean supportsDirectDelivery()
SessionCallback.supportsDirectDelivery()
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
- Exception
default void promptDelivery()
void proceedDeliver(MessageReference reference) throws Exception
Exception
Filter getFilter()
List<MessageReference> getDeliveringMessages()
String debug()
String toManagementString()
void disconnect()
long sequentialID()
default int getPriority()
getPriority
in interface PriorityAware
default void errorProcessing(Throwable e, MessageReference reference)
Copyright © 2021 JBoss by Red Hat. All rights reserved.