|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.quota.service.AbstractQuotaService<T>
public abstract class AbstractQuotaService<T extends QuotaKey>
Constructor Summary | |
---|---|
AbstractQuotaService()
|
Method Summary | |
---|---|
Quota |
get(T key)
Gets the quota of the resource from a given quota key. |
Quota |
initialize(T key,
long maxCount)
Initializes the quota of the resource for the given quota key. |
Quota |
initialize(T key,
long minCount,
long maxCount)
Initializes the quota of the resource for the given quota key. |
Quota |
initialize(T key,
Quota quota)
Initializes the quota of the resource for the given quota key and from an existing quota. |
protected abstract boolean |
isActivated()
Indicates if the type of quota is activated |
void |
remove(T key)
Removes quietly the quota of the resource from a given quota key. |
Quota |
verify(T key)
Verifies if the quota is full or not enough from a given quota key. |
Quota |
verify(T key,
AbstractQuotaCountingOffset countingOffset)
Verifies if the quota is full or not enough from a given quota key and adding a counting offset. |
protected Quota |
verify(T key,
Quota quota,
AbstractQuotaCountingOffset countingOffset)
Verify from a given quota |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.silverpeas.quota.service.QuotaService |
---|
getCurrentCount |
Constructor Detail |
---|
public AbstractQuotaService()
Method Detail |
---|
public Quota initialize(T key, long maxCount) throws QuotaException
QuotaService
initialize
in interface QuotaService<T extends QuotaKey>
QuotaException
public Quota initialize(T key, Quota quota) throws QuotaException
QuotaService
initialize
in interface QuotaService<T extends QuotaKey>
QuotaException
@Transactional(propagation=REQUIRED) public Quota initialize(T key, long minCount, long maxCount) throws QuotaException
QuotaService
initialize
in interface QuotaService<T extends QuotaKey>
QuotaException
@Transactional(propagation=REQUIRED) public Quota get(T key) throws QuotaException
QuotaService
get
in interface QuotaService<T extends QuotaKey>
QuotaException
public Quota verify(T key) throws QuotaException
QuotaService
verify
in interface QuotaService<T extends QuotaKey>
QuotaException
public Quota verify(T key, AbstractQuotaCountingOffset countingOffset) throws QuotaException
QuotaService
verify
in interface QuotaService<T extends QuotaKey>
QuotaException
protected Quota verify(T key, Quota quota, AbstractQuotaCountingOffset countingOffset) throws QuotaException
QuotaException
@Transactional(propagation=REQUIRED) public void remove(T key)
QuotaService
remove
in interface QuotaService<T extends QuotaKey>
protected abstract boolean isActivated()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |