Class KinesisIO.RecordAggregation.Builder
- java.lang.Object
-
- org.apache.beam.sdk.io.aws2.kinesis.KinesisIO.RecordAggregation.Builder
-
- Enclosing class:
- KinesisIO.RecordAggregation
public abstract static class KinesisIO.RecordAggregation.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description KinesisIO.RecordAggregationbuild()abstract KinesisIO.RecordAggregation.BuildermaxBufferedTime(org.joda.time.Duration interval)Buffer timeout for user records.abstract KinesisIO.RecordAggregation.BuildermaxBytes(int bytes)Max bytes per aggregated record.abstract KinesisIO.RecordAggregation.BuildershardRefreshInterval(org.joda.time.Duration interval)Refresh interval for shards.
-
-
-
Method Detail
-
maxBytes
public abstract KinesisIO.RecordAggregation.Builder maxBytes(int bytes)
Max bytes per aggregated record.
-
maxBufferedTime
public abstract KinesisIO.RecordAggregation.Builder maxBufferedTime(org.joda.time.Duration interval)
Buffer timeout for user records.Note: This is only attempted on a best effort basis. In case request latency is too high, timeouts can be delayed.
-
shardRefreshInterval
public abstract KinesisIO.RecordAggregation.Builder shardRefreshInterval(org.joda.time.Duration interval)
Refresh interval for shards.This is used for shard aware record aggregation to assign all records hashed to a particular shard to the same explicit hash key. Set to
Duration.ZEROto disable loading shards.
-
build
public KinesisIO.RecordAggregation build()
-
-