Package io.hstream
Class BatchSetting.Builder
- java.lang.Object
-
- io.hstream.BatchSetting.Builder
-
- Enclosing class:
- BatchSetting
public static class BatchSetting.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchSetting.Builder
ageLimit(long ageLimit)
BatchSetting
build()
There should exist more than one enabled option, otherwise throws aHStreamDBClientException
exception.BatchSetting.Builder
bytesLimit(int bytesLimit)
BatchSetting.Builder
recordCountLimit(int recordCountLimit)
-
-
-
Method Detail
-
recordCountLimit
public BatchSetting.Builder recordCountLimit(int recordCountLimit)
- Parameters:
recordCountLimit
- optional, default: 100, disabled if recordCountLimit <= 0- Returns:
- the
BatchSetting.Builder
instance
-
bytesLimit
public BatchSetting.Builder bytesLimit(int bytesLimit)
- Parameters:
bytesLimit
- optional, default: 4096(Bytes), disabled if bytesLimit <= 0- Returns:
- the
BatchSetting.Builder
instance
-
ageLimit
public BatchSetting.Builder ageLimit(long ageLimit)
- Parameters:
ageLimit
- optional, default: 100(ms), disabled if ageLimit <= 0- Returns:
- the
BatchSetting.Builder
instance
-
build
public BatchSetting build()
There should exist more than one enabled option, otherwise throws aHStreamDBClientException
exception.- Returns:
- the
BatchSetting
instance
-
-