| Constructor and Description |
|---|
Redistributor(Queue queue,
StorageManager storageManager,
PostOffice postOffice,
Executor executor,
int batchSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
debug() |
void |
getDeliveringMessages(List<MessageReference> refList)
Add the in-deliver mode messages to the ref-list passed as parameter
|
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 Consumer.proceedDeliver(MessageReference). |
void |
proceedDeliver(MessageReference ref)
This will proceed with the actual delivery.
|
void |
start() |
void |
stop() |
String |
toManagementString()
This method will create a string representation meant for management operations.
|
public Redistributor(Queue queue, StorageManager storageManager, PostOffice postOffice, Executor executor, int batchSize)
public String toManagementString()
ConsumertoManagementString in interface Consumerpublic void start()
public void getDeliveringMessages(List<MessageReference> refList)
ConsumergetDeliveringMessages in interface ConsumerrefList - the placeholder for where the output messages will be placedpublic void close()
public HandleStatus handle(MessageReference reference) throws Exception
ConsumerConsumer.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
public void proceedDeliver(MessageReference ref)
ConsumerproceedDeliver in interface ConsumerCopyright © 2013 JBoss, a division of Red Hat. All rights reserved.