Interface QueueConsumer
- All Known Implementing Classes:
WorkerQueueConsumerImpl
public interface QueueConsumer
The basic RabbitMQ consumer-side API methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processAck
(long tag) Acknowledge a messagevoid
processDelivery
(Delivery delivery) Handle a new message from the RabbitMQ queuevoid
processDrop
(long tag) Drop a messagevoid
processReject
(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
-