Package one.microstream.afs.nio
Class NioFileWrapper.Abstract<U>
java.lang.Object
one.microstream.afs.AItem.Base
one.microstream.afs.AFile.Wrapper.Abstract<U>
one.microstream.afs.nio.NioFileWrapper.Abstract<U>
- All Implemented Interfaces:
AFile
,AFile.Wrapper
,AItem
,AItem.Wrapper
,NioFileWrapper
,NioItemWrapper
- Direct Known Subclasses:
NioReadableFile.Default
- Enclosing interface:
- NioFileWrapper
public abstract static class NioFileWrapper.Abstract<U> extends AFile.Wrapper.Abstract<U> implements NioFileWrapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.afs.AFile
AFile.Default, AFile.Observer, AFile.Wrapper
Nested classes/interfaces inherited from interface one.microstream.afs.AFile.Wrapper
AFile.Wrapper.Abstract<U>
Nested classes/interfaces inherited from interface one.microstream.afs.AItem
AItem.Abstract, AItem.Base, AItem.Wrapper
Nested classes/interfaces inherited from interface one.microstream.afs.nio.NioFileWrapper
NioFileWrapper.Abstract<U>
-
Constructor Summary
Constructors Constructor Description Abstract()
-
Method Summary
Modifier and Type Method Description boolean
checkChannelOpen()
boolean
closeChannel()
FileChannel
ensureOpenChannel()
FileChannel
ensureOpenChannel(OpenOption... options)
FileChannel
fileChannel()
boolean
isChannelOpen()
boolean
isRetired()
boolean
openChannel()
boolean
openChannel(OpenOption... options)
Path
path()
boolean
reopenChannel(OpenOption... options)
boolean
retire()
void
validateIsNotRetired()
Methods inherited from class one.microstream.afs.AFile.Wrapper.Abstract
actual, exists, fileSystem, identifier, iterateObservers, name, parent, registerObserver, removeObserver, type, user
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface one.microstream.afs.AFile
defaultUser, ensureExists, exists, isEmpty, isUsed, iterateObservers, name, registerObserver, removeObserver, size, toPath, toPathString, tryUseReading, tryUseReading, tryUseWriting, tryUseWriting, type, useReading, useReading, useWriting, useWriting
-
Constructor Details
-
Abstract
public Abstract()
-
-
Method Details
-
path
- Specified by:
path
in interfaceNioItemWrapper
-
fileChannel
- Specified by:
fileChannel
in interfaceNioFileWrapper
-
retire
public boolean retire()- Specified by:
retire
in interfaceNioFileWrapper
-
isRetired
public boolean isRetired()- Specified by:
isRetired
in interfaceNioFileWrapper
-
validateIsNotRetired
public void validateIsNotRetired() -
closeChannel
- Specified by:
closeChannel
in interfaceNioFileWrapper
- Throws:
IORuntimeException
-
isChannelOpen
public boolean isChannelOpen()- Specified by:
isChannelOpen
in interfaceNioFileWrapper
-
checkChannelOpen
public boolean checkChannelOpen()- Specified by:
checkChannelOpen
in interfaceNioFileWrapper
-
ensureOpenChannel
- Specified by:
ensureOpenChannel
in interfaceNioFileWrapper
-
ensureOpenChannel
- Specified by:
ensureOpenChannel
in interfaceNioFileWrapper
-
openChannel
- Specified by:
openChannel
in interfaceNioFileWrapper
- Throws:
IORuntimeException
-
openChannel
- Specified by:
openChannel
in interfaceNioFileWrapper
- Throws:
IORuntimeException
-
reopenChannel
- Specified by:
reopenChannel
in interfaceNioFileWrapper
- Throws:
IORuntimeException
-