Skip to content

Commit

Permalink
add top_size query
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Feb 3, 2025
1 parent e1a6a72 commit 27f4db5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ protected SnapshotQuery() {
.map(index -> index + 1)
.map(Object::toString)
.orElse("0"));
registerAction("top_size", (actor, context) ->
Integer.toString(context.agent.getSnapshot().size()));
}

protected abstract Optional<SnapshotAgent<K, V>> getAgent(@NotNull String name);
Expand Down

0 comments on commit 27f4db5

Please sign in to comment.