Home How to get the count of number of active client requests for a GET method
Reply: 0

How to get the count of number of active client requests for a GET method

user565
1#
user565 Published in April 22, 2018, 12:40 am

Is there a way to find the number of active client requests currently accessing a GET method(getProducts()) in REST?

What I have is:

@GET
@Path("/products")    
@Produces({ "application/xml" })    
public Response getProducts(){
//My business logic to retrieve products go here

}

Now, I issue a GET request from the browser: http://localhost:8080/v1/products

How to find the number of active client requests currently accessing getProducts() method at any point in time on the server side?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.298 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO