public class RabbitMQProducer extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PRE_FETCH |
| Constructor and Description |
|---|
RabbitMQProducer(String url,
String exchangeName) |
RabbitMQProducer(String url,
String exchangeName,
String getExchangeType) |
| Modifier and Type | Method and Description |
|---|---|
void |
ackMessage(Long msgId) |
void |
close() |
void |
deadLetter(Long msgId) |
void |
failMessage(Long msgId) |
void |
failWithRedelivery(Long msgId) |
void |
open() |
void |
send(byte[] message,
String routingKey) |
void |
sendToWorkerQueue(byte[] message,
String routingKey) |
void |
setPrefetchCount(int prefetchCount) |
void |
setReQueueOnFail(boolean isReQueueOnFail) |
public static final int DEFAULT_PRE_FETCH
public void setPrefetchCount(int prefetchCount)
public void setReQueueOnFail(boolean isReQueueOnFail)
public void close()
public void open()
throws AiravataException
AiravataExceptionpublic void sendToWorkerQueue(byte[] message,
String routingKey)
throws Exception
ExceptionCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.