class FreeIdKeeper implements Closeable {

    public void freeId( long id )
    {
        freeIds.enqueue( id );
        freeIdCount++;

        if ( freeIds.size() >= batchSize )
        {
            long endPosition = flushFreeIds( ByteBuffer.allocate( batchSize * ID_ENTRY_SIZE ) );
            if ( aggressiveMode )
            {
                stackPosition = endPosition;
            }
        }
    }

      FreeIdKeeper( StoreChannel channel, int batchSize, boolean aggressiveMode );

}