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>

public static class TenantCache.TenantQuotaExceededException extends RuntimeException
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 Details

    • TenantQuotaExceededException

      public TenantQuotaExceededException(String tenantId, long quota, long currentSize)
      TenantQuotaExceededException | TenantQuotaExceededException
      Parameters:
      tenantId - the tenantId | tenantId
      quota - the quota | quota
      currentSize - the currentSize | currentSize
  • Method Details

    • getTenantId

      public String getTenantId()
      getTenantId | getTenantId
      Returns:
      the result | 结果
    • getQuota

      public long getQuota()
      getQuota | getQuota
      Returns:
      the result | 结果
    • getCurrentSize

      public long getCurrentSize()
      getCurrentSize | getCurrentSize
      Returns:
      the result | 结果