void (int nextRecordId) { Page _headerPage = headerPage; if (_headerPage == null) { throw new AlreadyDisposedException("Storage is closed"); } if (nextRecordId <= NULL_ID) { throw new IllegalArgumentException("nextRecordId(=" + nextRecordId + ") must be >0"); } ByteBuffer headerBuffer = _headerPage.rawPageBuffer(); INT_HANDLE.setVolatile(headerBuffer, HeaderLayout.NEXT_RECORD_ID_OFFSET, nextRecordId); }