Package one.microstream.afs
Class AccessManager.Default<S extends AFileSystem>
java.lang.Object
one.microstream.afs.AccessManager.Default<S>
- All Implemented Interfaces:
AccessManager
- Enclosing interface:
- AccessManager
public static class AccessManager.Default<S extends AFileSystem> extends Object implements AccessManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.afs.AccessManager
AccessManager.Creator, AccessManager.Default<S extends AFileSystem>
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description AReadableFile
downgrade(AWritableFile file)
<R> R
executeMutating(ADirectory directory, Function<? super ADirectory,R> logic)
S
fileSystem()
boolean
isMutating(ADirectory directory)
boolean
isUsed(ADirectory directory)
boolean
isUsed(AFile file)
boolean
isUsedReading(AFile file)
boolean
isUsedReading(AFile file, Object user)
boolean
isUsedWriting(AFile file)
boolean
isUsedWriting(AFile file, Object user)
AReadableFile
tryUseReading(AFile file, Object user)
AWritableFile
tryUseWriting(AFile file, Object user)
boolean
unregister(AReadableFile file)
boolean
unregister(AWritableFile file)
AReadableFile
useReading(AFile file, Object user)
AWritableFile
useWriting(AFile file, Object user)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.microstream.afs.AccessManager
defaultUser, tryUseReading, tryUseWriting, useReading, useWriting
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
fileSystem
- Specified by:
fileSystem
in interfaceAccessManager
-
isUsed
- Specified by:
isUsed
in interfaceAccessManager
-
isMutating
- Specified by:
isMutating
in interfaceAccessManager
-
isUsed
- Specified by:
isUsed
in interfaceAccessManager
-
isUsedReading
- Specified by:
isUsedReading
in interfaceAccessManager
-
isUsedWriting
- Specified by:
isUsedWriting
in interfaceAccessManager
-
isUsedReading
- Specified by:
isUsedReading
in interfaceAccessManager
-
isUsedWriting
- Specified by:
isUsedWriting
in interfaceAccessManager
-
executeMutating
- Specified by:
executeMutating
in interfaceAccessManager
-
useReading
- Specified by:
useReading
in interfaceAccessManager
-
tryUseReading
- Specified by:
tryUseReading
in interfaceAccessManager
-
useWriting
- Specified by:
useWriting
in interfaceAccessManager
-
tryUseWriting
- Specified by:
tryUseWriting
in interfaceAccessManager
-
downgrade
- Specified by:
downgrade
in interfaceAccessManager
-
unregister
- Specified by:
unregister
in interfaceAccessManager
-
unregister
- Specified by:
unregister
in interfaceAccessManager
-