Skip to content

Commit

Permalink
Add simple SingleStreamTracker constructor with position (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
etspaceman authored Mar 26, 2023
1 parent b8d3390 commit 88246e7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ public SingleStreamTracker(
this(streamIdentifier, new StreamConfig(streamIdentifier, initialPosition));
}

public SingleStreamTracker(
String streamName,
@NonNull InitialPositionInStreamExtended initialPosition) {
this(StreamIdentifier.singleStreamInstance(streamName), initialPosition);
}

public SingleStreamTracker(@NonNull StreamIdentifier streamIdentifier, @NonNull StreamConfig streamConfig) {
this.streamIdentifier = streamIdentifier;
this.streamConfigs = Collections.singletonList(streamConfig);
Expand Down

0 comments on commit 88246e7

Please sign in to comment.