public class QueueConfig extends Object implements QueueDefinition
Constructor and Description |
---|
QueueConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<AdapterConfig> |
getAdapters() |
Optional<Integer> |
getBatchIntervalMs()
Messages are aggregated in batches before being dispatched.
|
Optional<Integer> |
getBatchSize()
Messages are aggregated in batches before being dispatched.
|
String |
getName()
The name of the protocol.
|
Optional<Integer> |
getNumThreads()
Number of threads used for consuming/dispatching messages.
|
Optional<Integer> |
getQueueSize()
Maximum number of messages to keep in memory while waiting
to be dispatched.
|
Optional<Boolean> |
getUseRoutingKey()
Whether or not the routing key should be used when forwarding messages to the broker.
|
int |
hashCode() |
void |
setAdapters(List<AdapterConfig> adapters) |
void |
setBatchIntervalMs(Integer batchIntervalMs) |
void |
setBatchSize(Integer batchSize) |
void |
setName(String name) |
void |
setNumThreads(Integer numThreads) |
void |
setQueueSize(Integer queueSize) |
void |
setUseRoutingKey(Boolean useRoutingKey) |
String |
toString() |
public String getName()
QueueDefinition
getName
in interface QueueDefinition
public void setName(String name)
public Optional<Integer> getNumThreads()
QueueDefinition
getNumThreads
in interface QueueDefinition
public void setNumThreads(Integer numThreads)
public Optional<Integer> getBatchSize()
QueueDefinition
getBatchSize
in interface QueueDefinition
public void setBatchSize(Integer batchSize)
public Optional<Integer> getBatchIntervalMs()
QueueDefinition
getBatchIntervalMs
in interface QueueDefinition
public void setBatchIntervalMs(Integer batchIntervalMs)
public Optional<Integer> getQueueSize()
QueueDefinition
getQueueSize
in interface QueueDefinition
public void setQueueSize(Integer queueSize)
public Optional<Boolean> getUseRoutingKey()
QueueDefinition
getUseRoutingKey
in interface QueueDefinition
public void setUseRoutingKey(Boolean useRoutingKey)
public List<AdapterConfig> getAdapters()
public void setAdapters(List<AdapterConfig> adapters)
Copyright © 2021. All rights reserved.