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 .