private void behaveWhenQuotaExceeded(String message) throws ExceededQuotaLimitException
   {
      switch (exceededQuotaBehavior)
      {
         case EXCEPTION :
            throw new ExceededQuotaLimitException(message);

         case WARNING :
            LOG.warn(message);
            break;
      }
   }
private void behaveWhenQuotaExceeded ( String message ) throws ExceededQuotaLimitException { switch ( exceededQuotaBehavior ) { case EXCEPTION : throw new ExceededQuotaLimitException ( message ) ; case WARNING : LOG . warn ( message ) ; break ; } }
What to do if data size exceeded quota limit. Throwing exception or logging only.
Depends on preconfigured parameter.

@param message
the detail message for exception or log operation
@throws ExceededQuotaLimitException
if current behavior is {@link ExceededQuotaBehavior#EXCEPTION}