public class RabbitMQConsumer extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
MS_WAIT_FOR_MESSAGE |
| Constructor and Description |
|---|
RabbitMQConsumer(ConnectionConfig connectionConfig,
int prefetchCount,
String queueName,
boolean requeueOnFail,
Declarator declarator,
ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(Long msgId) |
void |
close() |
void |
deadLetter(Long msgId) |
void |
fail(Long msgId) |
void |
failWithRedelivery(Long msgId) |
protected boolean |
isAutoAcking() |
Message |
nextMessage() |
void |
open() |
public static final long MS_WAIT_FOR_MESSAGE
public RabbitMQConsumer(ConnectionConfig connectionConfig, int prefetchCount, String queueName, boolean requeueOnFail, Declarator declarator, ErrorReporter errorReporter)
public Message nextMessage()
public void ack(Long msgId)
public void fail(Long msgId)
public void failWithRedelivery(Long msgId)
public void deadLetter(Long msgId)
public void open()
protected boolean isAutoAcking()
public void close()
Copyright © 2013-2015. All Rights Reserved.