Merge pull request #30237 from akka/rgc/fix-java-docs-on-tagging
fix(docs): java snippet showing how to tag events
This commit is contained in:
commit
1c6f184127
1 changed files with 4 additions and 1 deletions
|
|
@ -355,7 +355,10 @@ public class BasicPersistentBehaviorTest {
|
|||
// #tagging
|
||||
@Override
|
||||
public Set<String> tagsFor(Event event) {
|
||||
throw new RuntimeException("TODO: inspect the event and return any tags it should have");
|
||||
Set<String> tags = new HashSet<>();
|
||||
tags.add("tag1");
|
||||
tags.add("tag2");
|
||||
return tags;
|
||||
}
|
||||
// #tagging
|
||||
// #supervision
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue