Class TenantCache.TenantQuotaExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.cache.TenantCache.TenantQuotaExceededException
- All Implemented Interfaces:
Serializable
- Enclosing class:
TenantCache<K,V>
Exception thrown when tenant quota is exceeded
租户配额超限时抛出的异常
- Since:
- JDK 25, opencode-base-cache V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTenantQuotaExceededException(String tenantId, long quota, long currentSize) TenantQuotaExceededException | TenantQuotaExceededException -
Method Summary
Modifier and TypeMethodDescriptionlonggetCurrentSize | getCurrentSizelonggetQuota()getQuota | getQuotagetTenantId | getTenantIdMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TenantQuotaExceededException
TenantQuotaExceededException | TenantQuotaExceededException- Parameters:
tenantId- the tenantId | tenantIdquota- the quota | quotacurrentSize- the currentSize | currentSize
-
-
Method Details
-
getTenantId
-
getQuota
public long getQuota()getQuota | getQuota- Returns:
- the result | 结果
-
getCurrentSize
public long getCurrentSize()getCurrentSize | getCurrentSize- Returns:
- the result | 结果
-