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()
ProtocolDefinition
getName
in interface ProtocolDefinition
public Optional<Integer> getNumThreads()
ProtocolDefinition
getNumThreads
in interface ProtocolDefinition
public Optional<Integer> getBatchSize()
ProtocolDefinition
getBatchSize
in interface ProtocolDefinition
public Optional<Integer> getBatchIntervalMs()
ProtocolDefinition
getBatchIntervalMs
in interface ProtocolDefinition
public Optional<Integer> getQueueSize()
ProtocolDefinition
getQueueSize
in interface ProtocolDefinition
Copyright © 2018. All rights reserved.