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.
|
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
Copyright © 2019. All rights reserved.