public synchronized void checkGroups(int size) { if (firstViolation != null) { throw new LimitExceededException(firstViolation); } int groupsMax = getGroupsMax(); if (size > groupsMax) { firstViolation = new LimitExceededException("Too many counter groups: "+ size +" max="+ groupsMax); } }
public synchronized void checkCounters(int size) { if (firstViolation != null) { throw new LimitExceededException(firstViolation); } int countersMax = getCountersMax(); if (size > countersMax) { firstViolation = new LimitExceededException("Too many counters: "+ size + " max="+ countersMax); throw firstViolation; } }
public synchronized void checkCounters(int size) { if (firstViolation != null) { throw new LimitExceededException(firstViolation); } int countersMax = getCountersMax(); if (size > countersMax) { firstViolation = new LimitExceededException("Too many counters: "+ size + " max="+ countersMax); throw firstViolation; } }
public synchronized void checkCounters(int size) { if (firstViolation != null) { throw new LimitExceededException(firstViolation); } int countersMax = getCountersMax(); if (size > countersMax) { firstViolation = new LimitExceededException("Too many counters: "+ size + " max="+ countersMax); throw firstViolation; } }
public synchronized void checkGroups(int size) { if (firstViolation != null) { throw new LimitExceededException(firstViolation); } int groupsMax = getGroupsMax(); if (size > groupsMax) { firstViolation = new LimitExceededException("Too many counter groups: "+ size +" max="+ groupsMax); } }
public synchronized void checkGroups(int size) { if (firstViolation != null) { throw new LimitExceededException(firstViolation); } int groupsMax = getGroupsMax(); if (size > groupsMax) { firstViolation = new LimitExceededException("Too many counter groups: "+ size +" max="+ groupsMax); } }
public synchronized void checkCounters(int size) { if (firstViolation != null) { throw new LimitExceededException(firstViolation); } int countersMax = getCountersMax(); if (size > countersMax) { firstViolation = new LimitExceededException("Too many counters: "+ size + " max="+ countersMax); throw firstViolation; } }
public synchronized void checkGroups(int size) { if (firstViolation != null) { throw new LimitExceededException(firstViolation); } int groupsMax = getGroupsMax(); if (size > groupsMax) { firstViolation = new LimitExceededException("Too many counter groups: "+ size +" max="+ groupsMax); } }