Package one.microstream.storage.types
Class StorageLiveFile.Abstract<S extends StorageLiveFile<S>>
java.lang.Object
one.microstream.storage.types.StorageFile.Abstract
one.microstream.storage.types.StorageLiveFile.Abstract<S>
- All Implemented Interfaces:
StorageBackupableFile
,StorageClosableFile
,StorageFile
,StorageLiveFile<S>
- Direct Known Subclasses:
StorageLiveDataFile.Default
,StorageLiveTransactionsFile.Default
- Enclosing interface:
- StorageLiveFile<S extends StorageLiveFile<S>>
public abstract static class StorageLiveFile.Abstract<S extends StorageLiveFile<S>> extends StorageFile.Abstract implements StorageLiveFile<S>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageFile
StorageFile.Abstract
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageLiveFile
StorageLiveFile.Abstract<S extends StorageLiveFile<S>>
-
Constructor Summary
Constructors Constructor Description Abstract()
-
Method Summary
Modifier and Type Method Description boolean
clearUsages(StorageFileUser fileUser)
boolean
executeIfUnsued(Consumer<? super S> action)
boolean
hasUsers()
boolean
registerUsage(StorageFileUser fileUser)
boolean
unregisterUsage(StorageFileUser fileUser)
boolean
unregisterUsageClosing(StorageFileUser fileUser, Consumer<? super S> closingAction)
Methods inherited from class one.microstream.storage.types.StorageFile.Abstract
close, copyFrom, copyFrom, copyFrom, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, delete, exists, file, isOpen, moveTo, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, size, toString, truncate, writeBytes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface one.microstream.storage.types.StorageBackupableFile
ensureBackupFile
-
Constructor Details
-
Abstract
public Abstract()
-
-
Method Details
-
hasUsers
public final boolean hasUsers()- Specified by:
hasUsers
in interfaceStorageLiveFile<S extends StorageLiveFile<S>>
-
executeIfUnsued
- Specified by:
executeIfUnsued
in interfaceStorageLiveFile<S extends StorageLiveFile<S>>
-
registerUsage
- Specified by:
registerUsage
in interfaceStorageLiveFile<S extends StorageLiveFile<S>>
-
clearUsages
- Specified by:
clearUsages
in interfaceStorageLiveFile<S extends StorageLiveFile<S>>
-
unregisterUsage
- Specified by:
unregisterUsage
in interfaceStorageLiveFile<S extends StorageLiveFile<S>>
-
unregisterUsageClosing
- Specified by:
unregisterUsageClosing
in interfaceStorageLiveFile<S extends StorageLiveFile<S>>
-