Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 821cf22

Browse files
uncached_size for dedupq (#837)
1 parent f7cff82 commit 821cf22

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

web/src/main/java/com/bazaarvoice/emodb/web/resources/queue/DedupQueueResource1.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,18 @@ public long getMessageCount(@QueryParam("partitioned") BooleanParam partitioned,
168168
}
169169
}
170170

171+
@GET
172+
@Path("{queue}/uncached_size")
173+
@RequiresPermissions("queue|get_status|{queue}")
174+
@Timed(name = "bv.emodb.dedupq.DedupQueueResource1.getUncachedMessageCount", absolute = true)
175+
@ApiOperation (value = "gets the uncached Message count.",
176+
notes = "Returns a long.",
177+
response = long.class
178+
)
179+
public long getUncachedMessageCount(@PathParam("queue") String queue) {
180+
return _queueService.getUncachedSize(queue);
181+
}
182+
171183

172184
@GET
173185
@Path("{queue}/claimcount")

0 commit comments

Comments
 (0)