java.lang.Object
me.ahoo.cosid.runtime.GeneratorSpec.PeriodicSegment.Builder
- Enclosing class:
GeneratorSpec.PeriodicSegment
Builds a
GeneratorSpec.PeriodicSegment.-
Method Summary
Modifier and TypeMethodDescriptionbatch(BatchPolicy batch) Sets the batch policy of each period.build()Builds the generator.codec(GroupedCodecSpec codec) Sets the grouped codec.periodic(PeriodicPolicy periodic) Sets the periodic policy.
-
Method Details
-
batch
Sets the batch policy of each period.- Parameters:
batch- the policy; defaultBatchPolicy.DEFAULT- Returns:
- this builder
-
periodic
Sets the periodic policy.- Parameters:
periodic- the policy; defaultPeriodicPolicy.DEFAULT- Returns:
- this builder
-
codec
Sets the grouped codec.- Parameters:
codec- the codec; default the period first,-, then the value- Returns:
- this builder
-
build
Builds the generator.- Returns:
- the generator
-