Class FileObjectIdProvider
java.lang.Object
one.microstream.io.AbstractProviderByFile
one.microstream.persistence.internal.AbstractIdProviderByFile
one.microstream.persistence.internal.FileObjectIdProvider
- All Implemented Interfaces:
PersistenceObjectIdHolder
,PersistenceObjectIdProvider
,Cloneable<PersistenceObjectIdProvider>
public final class FileObjectIdProvider extends AbstractIdProviderByFile implements PersistenceObjectIdProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceObjectIdProvider
PersistenceObjectIdProvider.Failing, PersistenceObjectIdProvider.Transient
-
Constructor Summary
Constructors Constructor Description FileObjectIdProvider()
-
Method Summary
Modifier and Type Method Description long
currentObjectId()
FileObjectIdProvider
initializeObjectId()
static FileObjectIdProvider
New(AFile file, long increase)
static FileObjectIdProvider
New(AFile file, long increase, long startId)
long
provideNextObjectId()
FileObjectIdProvider
updateCurrentObjectId(long currentObjectId)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.microstream.persistence.types.PersistenceObjectIdProvider
Clone
-
Constructor Details
-
FileObjectIdProvider
public FileObjectIdProvider()
-
-
Method Details
-
New
-
New
-
provideNextObjectId
public final long provideNextObjectId()- Specified by:
provideNextObjectId
in interfacePersistenceObjectIdProvider
-
currentObjectId
public final long currentObjectId()- Specified by:
currentObjectId
in interfacePersistenceObjectIdHolder
- Specified by:
currentObjectId
in interfacePersistenceObjectIdProvider
-
initializeObjectId
- Specified by:
initializeObjectId
in interfacePersistenceObjectIdProvider
-
updateCurrentObjectId
- Specified by:
updateCurrentObjectId
in interfacePersistenceObjectIdHolder
- Specified by:
updateCurrentObjectId
in interfacePersistenceObjectIdProvider
-