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
-
-
Method Summary
Modifier and Type Method Description voidclose()booleandecrementUserCount()booleandelete()booleanexists()Filefile()FileChannelfileChannel()booleanhasNoUsers()Stringidentifier()Returns a string uniquely identifying the file represented by this instance.intincrementUserCount()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.StringtoString()-
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.StorageFile
flush, isEmpty, isOpen
-
Methods inherited from interface one.microstream.storage.types.StorageLockedFile
length
-
-
-
-
Method Detail
-
file
public final File file()
-
fileChannel
public final FileChannel fileChannel()
- Specified by:
fileChannelin interfaceStorageFile
-
qualifier
public String qualifier()
Description copied from interface:StorageFileReturns a string that givesStorageFile.name()a unique identity. Example: The parent directory path of aFile.- Specified by:
qualifierin interfaceStorageFile
-
identifier
public String 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
public String 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
-
incrementUserCount
public int incrementUserCount()
- Specified by:
incrementUserCountin interfaceStorageLockedFile
-
decrementUserCount
public boolean decrementUserCount()
- Specified by:
decrementUserCountin interfaceStorageLockedFile
-
hasNoUsers
public boolean hasNoUsers()
- Specified by:
hasNoUsersin interfaceStorageLockedFile
-
-