public interface StreamSourceOptions
Modifier and Type | Interface and Description |
---|---|
static interface |
StreamSourceOptions.Impl |
Modifier and Type | Method and Description |
---|---|
static StreamSourceOptions.Impl |
ackReturnAgg(RamaAccumulatorAgg1 agg)
Specifies aggregator to use for ack returns for processing off of this depot.
|
static StreamSourceOptions.Impl |
ackReturnAgg(RamaCombinerAgg agg)
Specifies aggregator to use for ack returns for processing off of this depot.
|
static StreamSourceOptions.Impl |
ackReturnAgg(RamaFunction1<java.lang.Object,Agg> agg)
Specifies aggregator to use for ack returns for processing off of this depot.
|
static StreamSourceOptions.Impl |
create()
Creates an empty StreamSourceOptions.
|
static StreamSourceOptions.Impl |
retryAllAfter()
Retry failed records and all records after in the same depot partition
|
static StreamSourceOptions.Impl |
retryNone()
Never retry a failed depot record
|
static StreamSourceOptions.Impl |
startFromBeginning()
Start processing from beginning of depot partition.
|
static StreamSourceOptions.Impl |
startFromOffsetAfterTimestamp(long millis)
Start processing each depot partition from a point in the past.
|
static StreamSourceOptions.Impl |
startFromOffsetAgo(long amt,
OffsetAgo unit)
Start processing each depot partition from a point in the past.
|
static StreamSourceOptions.Impl create()
StreamSourceOptions.startFromBeginning()
is the
same as StreamSourceOptions.create().startFromBeginning()
static StreamSourceOptions.Impl retryAllAfter()
static StreamSourceOptions.Impl retryNone()
static StreamSourceOptions.Impl startFromBeginning()
static StreamSourceOptions.Impl startFromOffsetAgo(long amt, OffsetAgo unit)
amt
- How far back to start in terms of specified unitunit
- Cardinality or time-based unitstatic StreamSourceOptions.Impl startFromOffsetAfterTimestamp(long millis)
millis
- Timestamp based on number of milliseconds since midnight, January 1, 1970 UTCstatic StreamSourceOptions.Impl ackReturnAgg(RamaAccumulatorAgg1 agg)
.ackReturnAgg(Agg::sum)
.agg
- Aggregator to usestatic StreamSourceOptions.Impl ackReturnAgg(RamaCombinerAgg agg)
.ackReturnAgg(Agg::sum)
.agg
- Aggregator to usestatic StreamSourceOptions.Impl ackReturnAgg(RamaFunction1<java.lang.Object,Agg> agg)
.ackReturnAgg(Agg::sum)
.agg
- Aggregator to use