Class FileObjectIdProvider
- java.lang.Object
-
- one.microstream.files.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(File file, long increase)
static FileObjectIdProvider
New(File file, long increase, long startId)
long
provideNextObjectId()
FileObjectIdProvider
updateCurrentObjectId(long currentObjectId)
-
Methods inherited from class one.microstream.persistence.internal.AbstractIdProviderByFile
writeId
-
Methods inherited from class one.microstream.files.AbstractProviderByFile
write
-
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
-
-
-
-
Method Detail
-
New
public static FileObjectIdProvider New(File file, long increase)
-
New
public static FileObjectIdProvider New(File file, long increase, long startId)
-
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
public final FileObjectIdProvider initializeObjectId()
- Specified by:
initializeObjectId
in interfacePersistenceObjectIdProvider
-
updateCurrentObjectId
public FileObjectIdProvider updateCurrentObjectId(long currentObjectId)
- Specified by:
updateCurrentObjectId
in interfacePersistenceObjectIdHolder
- Specified by:
updateCurrentObjectId
in interfacePersistenceObjectIdProvider
-
-