Package one.microstream.storage.types
Class StorageLockedFile.Default
java.lang.Object
one.microstream.storage.types.StorageLockedFile.Default
- All Implemented Interfaces:
 StorageFile,StorageLockedFile
- Direct Known Subclasses:
 StorageInventoryFile.Default
- Enclosing interface:
 - StorageLockedFile
 
public static class StorageLockedFile.Default extends Object implements StorageLockedFile
- 
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageLockedFile
StorageLockedFile.Default - 
Constructor Summary
Constructors Constructor Description Default() - 
Method Summary
Modifier and Type Method Description booleanclearUsages(StorageFileUser fileUser)voidclose()booleandelete()booleanexecuteIfUnsued(Consumer<? super StorageLockedFile> action)booleanexists()Pathfile()FileChannelfileChannel()booleanhasUsers()Stringidentifier()Returns a string uniquely identifying the file represented by this instance.Stringname()Return a compact string containing a specific, but not necessarily unique name of the file represented by this instance.Stringqualifier()Returns a string that givesStorageFile.name()a unique identity.booleanregisterUsage(StorageFileUser fileUser)StringtoString()booleantryClose()booleanunregisterUsage(StorageFileUser fileUser)booleanunregisterUsageClosing(StorageFileUser fileUser, Consumer<? super StorageLockedFile> closingAction) 
- 
Constructor Details
- 
Default
public Default() 
 - 
 - 
Method Details
- 
file
 - 
fileChannel
- Specified by:
 fileChannelin interfaceStorageFile
 - 
qualifier
Description copied from interface:StorageFileReturns a string that givesStorageFile.name()a unique identity. Example: The parent directory path of a file.- Specified by:
 qualifierin interfaceStorageFile
 - 
identifier
Description copied from interface:StorageFileReturns a string uniquely identifying the file represented by this instance.- Specified by:
 identifierin interfaceStorageFile- Returns:
 - this file's unique identifier.
 - See Also:
 StorageFile.name()
 - 
name
Description copied from interface:StorageFileReturn a compact string containing a specific, but not necessarily unique name of the file represented by this instance. Might be the same string returned byStorageFile.identifier().- Specified by:
 namein interfaceStorageFile- Returns:
 - this file's name.
 - See Also:
 StorageFile.identifier()
 - 
delete
public boolean delete()- Specified by:
 deletein interfaceStorageFile
 - 
exists
public boolean exists()- Specified by:
 existsin interfaceStorageFile
 - 
close
public final void close()- Specified by:
 closein interfaceStorageFile- Specified by:
 closein interfaceStorageLockedFile
 - 
tryClose
public final boolean tryClose()- Specified by:
 tryClosein interfaceStorageLockedFile
 - 
hasUsers
public final boolean hasUsers()- Specified by:
 hasUsersin interfaceStorageLockedFile
 - 
executeIfUnsued
- Specified by:
 executeIfUnsuedin interfaceStorageLockedFile
 - 
registerUsage
- Specified by:
 registerUsagein interfaceStorageLockedFile
 - 
clearUsages
- Specified by:
 clearUsagesin interfaceStorageLockedFile
 - 
unregisterUsage
- Specified by:
 unregisterUsagein interfaceStorageLockedFile
 - 
unregisterUsageClosing
public boolean unregisterUsageClosing(StorageFileUser fileUser, Consumer<? super StorageLockedFile> closingAction)- Specified by:
 unregisterUsageClosingin interfaceStorageLockedFile
 - 
toString
 
 -