Class FileTypeIdProvider
- java.lang.Object
-
- one.microstream.io.AbstractProviderByFile
-
- one.microstream.persistence.internal.AbstractIdProviderByFile
-
- one.microstream.persistence.internal.FileTypeIdProvider
-
- All Implemented Interfaces:
PersistenceTypeIdHolder
,PersistenceTypeIdProvider
public final class FileTypeIdProvider extends AbstractIdProviderByFile implements PersistenceTypeIdProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeIdProvider
PersistenceTypeIdProvider.Failing, PersistenceTypeIdProvider.Transient
-
-
Constructor Summary
Constructors Constructor Description FileTypeIdProvider()
-
Method Summary
Modifier and Type Method Description long
currentTypeId()
FileTypeIdProvider
initializeTypeId()
static FileTypeIdProvider
New(Path file, long increase)
static FileTypeIdProvider
New(Path file, long increase, long startId)
long
provideNextTypeId()
FileTypeIdProvider
updateCurrentTypeId(long currentTypeId)
-
Methods inherited from class one.microstream.persistence.internal.AbstractIdProviderByFile
writeId
-
Methods inherited from class one.microstream.io.AbstractProviderByFile
write
-
-
-
-
Method Detail
-
New
public static FileTypeIdProvider New(Path file, long increase)
-
New
public static FileTypeIdProvider New(Path file, long increase, long startId)
-
provideNextTypeId
public final long provideNextTypeId()
- Specified by:
provideNextTypeId
in interfacePersistenceTypeIdProvider
-
currentTypeId
public final long currentTypeId()
- Specified by:
currentTypeId
in interfacePersistenceTypeIdHolder
-
initializeTypeId
public final FileTypeIdProvider initializeTypeId()
- Specified by:
initializeTypeId
in interfacePersistenceTypeIdProvider
-
updateCurrentTypeId
public FileTypeIdProvider updateCurrentTypeId(long currentTypeId)
- Specified by:
updateCurrentTypeId
in interfacePersistenceTypeIdProvider
-
-