Class JPPoolHardLimitExceededException

All Implemented Interfaces:
Serializable

public final class JPPoolHardLimitExceededException extends JPPoolException
An exception raised by attempting to create a new object in a pool when that object would exceed the pool's hard size limit.
See Also:
  • Method Details

    • newException

      public static JPPoolHardLimitExceededException newException(long limit, long size)
      Construct a new exception.
      Parameters:
      limit - The hard limit
      size - The size that exceeded the limit
      Returns:
      A new exception
    • getLimit

      public long getLimit()
      Returns:
      The pool's hard limit
    • getSize

      public long getSize()
      Returns:
      The size that exceeded the limit