public class MapBasedProtocolDef extends Object implements ProtocolDefinition
| Constructor and Description |
|---|
MapBasedProtocolDef(Map<String,String> parameters) |
| 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 String getName()
ProtocolDefinitiongetName in interface ProtocolDefinitionpublic Optional<Integer> getNumThreads()
ProtocolDefinitiongetNumThreads in interface ProtocolDefinitionpublic Optional<Integer> getBatchSize()
ProtocolDefinitiongetBatchSize in interface ProtocolDefinitionpublic Optional<Integer> getBatchIntervalMs()
ProtocolDefinitiongetBatchIntervalMs in interface ProtocolDefinitionpublic Optional<Integer> getQueueSize()
ProtocolDefinitiongetQueueSize in interface ProtocolDefinitionCopyright © 2018. All rights reserved.