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 |
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 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()
Consumer
toManagementString
in interface Consumer
public void disconnect()
Consumer
disconnect
in interface Consumer
public void start()
public void close()
public HandleStatus handle(MessageReference reference) throws Exception
Consumer
Consumer.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)
Consumer
proceedDeliver
in interface Consumer
public List<MessageReference> getDeliveringMessages()
getDeliveringMessages
in interface Consumer
Copyright © 2017 JBoss by Red Hat. All rights reserved.