From your question, i seems that if particular resource has accessed, queuing mechanism needs to be set.
Servlets runs in multi threading environment. Here
thread means user asking for resource. Please refer single threaded behavior of servlet.
If your requirement is for only one resource, you can create ServletRequestListener class which will handle such users. It will call for each and every request coming from user.