public class MapBasedQueueDef extends Object implements QueueDefinition
Constructor and Description |
---|
MapBasedQueueDef(PropertyTree definition) |
Modifier and Type | Method and Description |
---|---|
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.
|
public MapBasedQueueDef(PropertyTree definition)
public String getName()
QueueDefinition
getName
in interface QueueDefinition
public Optional<Integer> getNumThreads()
QueueDefinition
getNumThreads
in interface QueueDefinition
public Optional<Integer> getBatchSize()
QueueDefinition
getBatchSize
in interface QueueDefinition
public Optional<Integer> getBatchIntervalMs()
QueueDefinition
getBatchIntervalMs
in interface QueueDefinition
public Optional<Integer> getQueueSize()
QueueDefinition
getQueueSize
in interface QueueDefinition
public Optional<Boolean> getUseRoutingKey()
QueueDefinition
getUseRoutingKey
in interface QueueDefinition
Copyright © 2021. All rights reserved.