public class QueueOptions extends Object
RabbitMQClient.basicConsumer(String, QueueOptions, Handler)
Constructor and Description |
---|
QueueOptions() |
QueueOptions(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getConsumerArguments() |
String |
getConsumerTag() |
boolean |
isAutoAck() |
boolean |
isConsumerExclusive() |
boolean |
isKeepMostRecent() |
boolean |
isNoLocal() |
int |
maxInternalQueueSize() |
QueueOptions |
setAutoAck(boolean autoAck) |
void |
setConsumerArguments(Map<String,Object> consumerArguments) |
void |
setConsumerExclusive(boolean consumerExclusive) |
void |
setConsumerTag(String consumerTag) |
QueueOptions |
setKeepMostRecent(boolean keepMostRecent) |
QueueOptions |
setMaxInternalQueueSize(int maxInternalQueueSize) |
void |
setNoLocal(boolean noLocal) |
public QueueOptions()
public QueueOptions(JsonObject json)
public QueueOptions setAutoAck(boolean autoAck)
autoAck
- true if the server should consider messages
acknowledged once delivered; false if the server should expect
explicit acknowledgementspublic QueueOptions setKeepMostRecent(boolean keepMostRecent)
keepMostRecent
- true
for discarding old messages instead of recent ones,
otherwise use false
public QueueOptions setMaxInternalQueueSize(int maxInternalQueueSize)
maxInternalQueueSize
- the size of internal queuepublic boolean isAutoAck()
public int maxInternalQueueSize()
public boolean isKeepMostRecent()
true
if old messages will be discarded instead of recent ones,
otherwise use false
public boolean isNoLocal()
public void setNoLocal(boolean noLocal)
public boolean isConsumerExclusive()
public void setConsumerExclusive(boolean consumerExclusive)
public String getConsumerTag()
public void setConsumerTag(String consumerTag)
Copyright © 2024 Eclipse. All rights reserved.