Is there a way to know how many requests are currently being served? #6486
Answered
by
zUniQueX
emad-jamal
asked this question in
Q&A
-
Hi.. I am asking this because I need to shutdown some pubsub queues only after all requests being served are completed (Some request might consume or produce messages). Right now I implemented a filter to count those requests and here is its code: public class CurrentRequestCountFilter implements ContainerRequestFilter, ContainerResponseFilter {
} |
Beta Was this translation helpful? Give feedback.
Answered by
zUniQueX
Jan 12, 2023
Replies: 1 comment
-
Hi @emad-jamal. You can use the Dropwizard Metrics project for that. The metrics for Jetty provide a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
emad-jamal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @emad-jamal. You can use the Dropwizard Metrics project for that.
The metrics for Jetty provide a
Counter
for the active requests.