Package one.microstream.storage.types
Interface StorageLockedFile
-
- All Superinterfaces:
StorageFile
- All Known Subinterfaces:
StorageChannelImportSourceFile
,StorageDataFile<I>
,StorageInventoryFile
- All Known Implementing Classes:
StorageDataFile.Default
,StorageInventoryFile.Default
,StorageLockedFile.Default
,StorageRequestTaskImportData.SourceFileSlice
public interface StorageLockedFile extends StorageFile
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StorageLockedFile.Default
-
Method Summary
Modifier and Type Method Description static void
closeSilent(StorageLockedFile file)
boolean
decrementUserCount()
boolean
hasNoUsers()
int
incrementUserCount()
default long
length()
static StorageLockedFile
New(File file, FileLock lock)
static StorageLockedFile
openLockedFile(File file)
static FileLock
openLockedFileChannel(File file)
-
Methods inherited from interface one.microstream.storage.types.StorageFile
close, delete, exists, fileChannel, flush, identifier, isEmpty, isOpen, name, qualifier
-
-
-
-
Method Detail
-
length
default long length()
- Specified by:
length
in interfaceStorageFile
-
incrementUserCount
int incrementUserCount()
-
decrementUserCount
boolean decrementUserCount()
-
hasNoUsers
boolean hasNoUsers()
-
closeSilent
static void closeSilent(StorageLockedFile file)
-
openLockedFile
static StorageLockedFile openLockedFile(File file)
-
New
static StorageLockedFile New(File file, FileLock lock)
-
-