org.neo4j.kernel.impl.nioneo.store
Interface IdGenerator

All Known Implementing Classes:
IdGeneratorImpl, ReadOnlyIdGenerator, SlaveIdGenerator

public interface IdGenerator


Method Summary
 void close(boolean shutdown)
          Closes the id generator.
 void delete()
           
 void freeId(long id)
           
 long getDefragCount()
           
 long getHighId()
           
 long getNumberOfIdsInUse()
           
 long nextId()
           
 IdRange nextIdBatch(int size)
           
 void setHighId(long id)
           
 

Method Detail

nextId

long nextId()

nextIdBatch

IdRange nextIdBatch(int size)

setHighId

void setHighId(long id)

getHighId

long getHighId()

freeId

void freeId(long id)

close

void close(boolean shutdown)
Closes the id generator.

Parameters:
shutdown - true if this is during shutdown of the database, false if it's an intermediary close, f.ex after rebuilding id generators at startup.

getNumberOfIdsInUse

long getNumberOfIdsInUse()

getDefragCount

long getDefragCount()

delete

void delete()


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.