/** * Allocate a new object id. * * @return the id */ public int allocateObjectId() { synchronized (objectIds) { int i = objectIds.nextClearBit(0); objectIds.set(i); return i; } }
private TreeSet<Long> executeSave(boolean force) { DataBuffer buff = getDataBuffer(); int id = chunkIds.nextClearBit(1); chunkIds.set(id); BTreeChunk c = new BTreeChunk(id);