Class FileTypeIdProvider
- java.lang.Object
-
- one.microstream.files.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(File file, long increase)
static FileTypeIdProvider
New(File 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.files.AbstractProviderByFile
write
-
-
-
-
Method Detail
-
New
public static FileTypeIdProvider New(File file, long increase)
-
New
public static FileTypeIdProvider New(File 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
-
-