Currently, in Quota policy timer starts after 1st request arrives or after specific time mentioned in StartTime tag.
Is it possible in Quota policy to start the timer after Quota limit exceeds+1 Request i.e.
Suppose, I have allowed 5 request per minute in Quota policy. Now, I want to start Quota timer after 6th Request arrives. So, on 6th request I will get Quota exceed limit error and 1 min interval will start at that time only.
EDIT
Suppose, I have allowed 5 requests per 2 minute using quota policy. Now, one application hits the proxy at 4:00 pm and at time same time quota timer will start. So, If all 5 requests are executed within 1 min then other incoming requests will be blocked till 4:02 pm and after 4:02 pm only user will get 5 requests again.
I want to customize quota policy in such a way that if 5 requests is executed within 1 min and when the 6th request arrives, then my timer will start i.e. if 6th request came at 4:01 pm then timer will start and quota will block incoming requests including 6th request till 4:03 pm. Instead of starting timer on 1st request I want to start it when 6th request arrives.
So, I want to know if there is possibility to customize quota policy or do I need to use some extensions to achieve this functionality.