|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.server.engine.OIDManager
public class OIDManager
handles giving out OIDs it gets unique OIDs from the database in chunks and gives them out
Field Summary | |
---|---|
int |
defaultChunkSize
|
static long |
invalidOid
|
Constructor Summary | |
---|---|
OIDManager()
|
|
OIDManager(Database db)
|
Method Summary | |
---|---|
boolean |
empty()
returns if there are no more OIDs and we need to grab more |
protected void |
getNewChunk(int chunkSize)
grabs a new chunk of Oids sets freeOid and lastOid appropriately |
OID |
getNextOid()
returns the next free oid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long invalidOid
public int defaultChunkSize
Constructor Detail |
---|
public OIDManager()
public OIDManager(Database db)
Method Detail |
---|
public OID getNextOid()
public boolean empty()
protected void getNewChunk(int chunkSize)
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |