Package step.plugins.quotamanager
Class QuotaHandler
- java.lang.Object
-
- step.plugins.quotamanager.QuotaHandler
-
public class QuotaHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description QuotaHandler(Quota config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
acquirePermit(Map<String,Object> bindingVariables)
protected String
computeQuotaKey(Map<String,Object> bindingVariables)
Quota
getConfig()
QuotaHandlerStatus
getStatus()
void
releasePermit(String quotaKey)
String
tryAcquirePermit(Map<String,Object> bindingVariables, long timeout)
-
-
-
Constructor Detail
-
QuotaHandler
public QuotaHandler(Quota config)
-
-
Method Detail
-
getConfig
public Quota getConfig()
-
acquirePermit
public String acquirePermit(Map<String,Object> bindingVariables) throws Exception
- Throws:
Exception
-
tryAcquirePermit
public String tryAcquirePermit(Map<String,Object> bindingVariables, long timeout) throws Exception
- Throws:
Exception
-
releasePermit
public void releasePermit(String quotaKey)
-
computeQuotaKey
protected String computeQuotaKey(Map<String,Object> bindingVariables) throws Exception
- Throws:
Exception
-
getStatus
public QuotaHandlerStatus getStatus()
-
-