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 classStorageLockedFile.Default
-
Method Summary
Modifier and Type Method Description static voidcloseSilent(StorageLockedFile file)booleandecrementUserCount()booleanhasNoUsers()intincrementUserCount()default longlength()static StorageLockedFileNew(File file, FileLock lock)static StorageLockedFileopenLockedFile(File file)static FileLockopenLockedFileChannel(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:
lengthin 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)
-
-