Package com.github.ambry.quota.storage
Interface StorageQuotaEnforcer.QuotaExceededCallback
-
- Enclosing interface:
- StorageQuotaEnforcer
public static interface StorageQuotaEnforcer.QuotaExceededCallback
Interface of callback method when the quota of certain account and container's quota is exceeded.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onQuotaExceeded(QuotaMode quotaMode, short accountId, short containerId, QuotaOperation op, long quota, long existingUsage, long opSize)
Method to call when the storage quota is exceeded.
-
-
-
Method Detail
-
onQuotaExceeded
void onQuotaExceeded(QuotaMode quotaMode, short accountId, short containerId, QuotaOperation op, long quota, long existingUsage, long opSize)
Method to call when the storage quota is exceeded.- Parameters:
quotaMode
- The currentQuotaMode
of Enforcer.accountId
- The account id that exceeds the quota.containerId
- The container id that exceeds the quota.op
- The particularQuotaOperation
that exceeds the quota.quota
- The storage quota.existingUsage
- The existing usage before the operation.opSize
- The storage size of the operation.
-
-