Skip to content

Commit

Permalink
feat: add partitionId to StreamProcessor context
Browse files Browse the repository at this point in the history
(cherry picked from commit f99ed0d)
  • Loading branch information
Zelldon authored and github-actions[bot] committed Sep 24, 2021
1 parent 21e6331 commit 08819dd
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -31,6 +31,7 @@
import java.time.Duration;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.Function;
Expand Down Expand Up @@ -97,6 +98,13 @@ public static StreamProcessorBuilder builder() {
return new StreamProcessorBuilder();
}

@Override
protected Map<String, String> createContext() {
final var context = super.createContext();
context.put(ACTOR_PROP_PARTITION_ID, Integer.toString(partitionId));
return context;
}

@Override
public String getName() {
return actorName;
Expand Down

0 comments on commit 08819dd

Please sign in to comment.