Package one.microstream.afs.nio.types
Interface NioFileWrapper
- All Superinterfaces:
AFile
,AFile.Wrapper
,AItem
,AItem.Wrapper
,NioItemWrapper
- All Known Subinterfaces:
NioReadableFile
,NioWritableFile
- All Known Implementing Classes:
NioFileWrapper.Abstract
,NioReadableFile.Default
,NioWritableFile.Default
public interface NioFileWrapper extends AFile.Wrapper, NioItemWrapper
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
NioFileWrapper.Abstract<U>
Nested classes/interfaces inherited from interface one.microstream.afs.types.AFile
AFile.Default, AFile.Observer, AFile.Wrapper
Nested classes/interfaces inherited from interface one.microstream.afs.types.AItem
AItem.Base, AItem.Wrapper
-
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)
boolean
reopenChannel(OpenOption... options)
boolean
retire()
Methods inherited from interface one.microstream.afs.types.AFile
defaultUser, ensureExists, exists, isEmpty, isUsed, iterateObservers, name, registerObserver, removeObserver, size, toPath, toPathString, tryUseReading, tryUseReading, tryUseWriting, tryUseWriting, type, useReading, useReading, useWriting, useWriting
-
Method Details
-
fileChannel
FileChannel fileChannel() -
retire
boolean retire() -
isRetired
boolean isRetired() -
isChannelOpen
boolean isChannelOpen() -
checkChannelOpen
boolean checkChannelOpen() -
ensureOpenChannel
FileChannel ensureOpenChannel() -
ensureOpenChannel
-
openChannel
- Throws:
IORuntimeException
-
openChannel
- Throws:
IORuntimeException
-
reopenChannel
- Throws:
IORuntimeException
-
closeChannel
- Throws:
IORuntimeException
-