Package com.rpl.rama.module
Interface StreamSourceOptions
- All Known Subinterfaces:
StreamSourceOptions.Impl
public interface StreamSourceOptions
Depot source options for stream topologies using builder pattern
Stream topologies documentation
-
Nested Class Summary
Nested Classes -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic StreamSourceOptions.ImplSpecifies aggregator to use for ack returns for processing off of this depot.static StreamSourceOptions.ImplSpecifies aggregator to use for ack returns for processing off of this depot.static StreamSourceOptions.ImplackReturnAgg(RamaFunction1<Object, Agg> agg) Specifies aggregator to use for ack returns for processing off of this depot.static StreamSourceOptions.Implcreate()Creates an empty StreamSourceOptions.static StreamSourceOptions.ImplRetry failed records and all records after in the same depot partitionstatic StreamSourceOptions.ImplNever retry a failed depot recordstatic StreamSourceOptions.ImplThe source ID for this subscription.static StreamSourceOptions.ImplStart processing from beginning of depot partition.static StreamSourceOptions.ImplstartFromOffsetAfterTimestamp(long millis) Start processing each depot partition from a point in the past.static StreamSourceOptions.ImplstartFromOffsetAgo(long amt, OffsetAgo unit) Start processing each depot partition from a point in the past.
-
Method Details
-
create
Creates an empty StreamSourceOptions.StreamSourceOptions.startFromBeginning()is the same asStreamSourceOptions.create().startFromBeginning() -
sourceId
The source ID for this subscription. -
retryAllAfter
Retry failed records and all records after in the same depot partition- See Also:
-
retryNone
Never retry a failed depot record- See Also:
-
startFromBeginning
Start processing from beginning of depot partition. Only takes effect the first time the topology encounters this depot.- See Also:
-
startFromOffsetAgo
Start processing each depot partition from a point in the past. Only takes effect the first time the topology encounters this depot.- Parameters:
amt- How far back to start in terms of specified unitunit- Cardinality or time-based unit- See Also:
-
startFromOffsetAfterTimestamp
Start processing each depot partition from a point in the past. Only takes effect the first time the topology encounters this depot.- Parameters:
millis- Timestamp based on number of milliseconds since midnight, January 1, 1970 UTC- See Also:
-
ackReturnAgg
Specifies aggregator to use for ack returns for processing off of this depot. Aggregator can be custom accumulator, custom combiner, or built-in aggregator. Built-in aggregators are specified like.ackReturnAgg(Agg::sum).- Parameters:
agg- Aggregator to use- See Also:
-
ackReturnAgg
Specifies aggregator to use for ack returns for processing off of this depot. Aggregator can be custom accumulator, custom combiner, or built-in aggregator. Built-in aggregators are specified like.ackReturnAgg(Agg::sum).- Parameters:
agg- Aggregator to use- See Also:
-
ackReturnAgg
Specifies aggregator to use for ack returns for processing off of this depot. Aggregator can be custom accumulator, custom combiner, or built-in aggregator. Built-in aggregators are specified like.ackReturnAgg(Agg::sum).- Parameters:
agg- Aggregator to use- See Also:
-