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 StringacquirePermit(Map<String,Object> bindingVariables)protected StringcomputeQuotaKey(Map<String,Object> bindingVariables)QuotagetConfig()QuotaHandlerStatusgetStatus()voidreleasePermit(String quotaKey)StringtryAcquirePermit(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()
-
-