I want to limit concurrent method invocation in spring application.
There is interceptor for this and here the example of using this interceptor. But the problem is that method(which need to be limited) is not in a bean, I am creating new object every time I need to call method. Is there is possibility to achieve limitation in this case?