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)
-
Constructor Details
-
FileTypeIdProvider
public FileTypeIdProvider()
-
-
Method Details
-
New
-
New
-
provideNextTypeId
public final long provideNextTypeId()- Specified by:
provideNextTypeId
in interfacePersistenceTypeIdProvider
-
currentTypeId
public final long currentTypeId()- Specified by:
currentTypeId
in interfacePersistenceTypeIdHolder
-
initializeTypeId
- Specified by:
initializeTypeId
in interfacePersistenceTypeIdProvider
-
updateCurrentTypeId
- Specified by:
updateCurrentTypeId
in interfacePersistenceTypeIdProvider
-