Interface QueueConsumer
- All Known Implementing Classes:
WorkerQueueConsumerImpl
public interface QueueConsumer
The basic RabbitMQ consumer-side API methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessAck(long tag) Acknowledge a messagevoidprocessDelivery(Delivery delivery) Handle a new message from the RabbitMQ queuevoidprocessDrop(long tag) Drop a messagevoidprocessReject(long tag) Reject a message back onto the queue
-
Method Details
-
processDelivery
Handle a new message from the RabbitMQ queue- Parameters:
delivery- the newly arrived message including metadata
-
processAck
void processAck(long tag) Acknowledge a message- Parameters:
tag- the RabbitMQ id of the message to acknowledge
-
processReject
void processReject(long tag) Reject a message back onto the queue- Parameters:
tag- the RabbitMQ id of the message to reject
-
processDrop
void processDrop(long tag) Drop a message- Parameters:
tag- the RabbitMQ id of the message to drop
-