Package io.hstream
Interface BufferedProducerBuilder
-
public interface BufferedProducerBuilderA builder forBufferedProducers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BufferedProducerBuilderbatchSetting(BatchSetting batchSetting)BufferedProducer will buffer records for each shard as a batch to send to servers, soBatchSettingis to control the batch buffer.BufferedProducerbuild()BufferedProducerBuildercompressionType(CompressionType compressionType)Set the compression type.BufferedProducerBuilderflowControlSetting(FlowControlSetting flowControlSetting)FlowControlSettingis to control total records(including buffered batch records for all keys and sending records) throughBufferedProducer.BufferedProducerBuilderrequestTimeoutMs(long timeoutMs)BufferedProducerBuilderstream(String streamName)
-
-
-
Method Detail
-
stream
BufferedProducerBuilder stream(String streamName)
-
batchSetting
BufferedProducerBuilder batchSetting(BatchSetting batchSetting)
BufferedProducer will buffer records for each shard as a batch to send to servers, soBatchSettingis to control the batch buffer.- Parameters:
batchSetting- setting for batch buffer- Returns:
- the BufferedProducerBuilder instance
-
flowControlSetting
BufferedProducerBuilder flowControlSetting(FlowControlSetting flowControlSetting)
FlowControlSettingis to control total records(including buffered batch records for all keys and sending records) throughBufferedProducer.- Parameters:
flowControlSetting- setting for flow control- Returns:
- the BufferedProducerBuilder instance
-
compressionType
BufferedProducerBuilder compressionType(CompressionType compressionType)
Set the compression type.- Parameters:
compressionType- type of compression- Returns:
- the BufferedProducerBuilder instance
-
requestTimeoutMs
BufferedProducerBuilder requestTimeoutMs(long timeoutMs)
-
build
BufferedProducer build()
-
-