int () { final int recordId = allocatedRecordsCount.incrementAndGet(); if (recordId > maxRecords) { throw new IndexOutOfBoundsException("maxRecords(=" + maxRecords + ") limit exceeded"); } markDirty(); return recordId; }