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 void
close()
boolean
decrementUserCount()
boolean
delete()
boolean
exists()
File
file()
FileChannel
fileChannel()
boolean
hasNoUsers()
String
identifier()
Returns a string uniquely identifying the file represented by this instance.int
incrementUserCount()
String
name()
Return a compact string containing a specific, but not necessarily unique name of the file represented by this instance.String
qualifier()
Returns a string that givesStorageFile.name()
a unique identity.String
toString()
-
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:
fileChannel
in interfaceStorageFile
-
qualifier
public String qualifier()
Description copied from interface:StorageFile
Returns a string that givesStorageFile.name()
a unique identity. Example: The parent directory path of aFile
.- Specified by:
qualifier
in interfaceStorageFile
-
identifier
public String identifier()
Description copied from interface:StorageFile
Returns a string uniquely identifying the file represented by this instance.- Specified by:
identifier
in interfaceStorageFile
- Returns:
- this file's unique identifier.
- See Also:
StorageFile.name()
-
name
public String name()
Description copied from interface:StorageFile
Return 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:
name
in interfaceStorageFile
- Returns:
- this file's name.
- See Also:
StorageFile.identifier()
-
delete
public boolean delete()
- Specified by:
delete
in interfaceStorageFile
-
exists
public boolean exists()
- Specified by:
exists
in interfaceStorageFile
-
close
public final void close()
- Specified by:
close
in interfaceStorageFile
-
incrementUserCount
public int incrementUserCount()
- Specified by:
incrementUserCount
in interfaceStorageLockedFile
-
decrementUserCount
public boolean decrementUserCount()
- Specified by:
decrementUserCount
in interfaceStorageLockedFile
-
hasNoUsers
public boolean hasNoUsers()
- Specified by:
hasNoUsers
in interfaceStorageLockedFile
-
-