Package one.microstream.afs.nio.types
Class NioFileWrapper.Abstract<U>
java.lang.Object
one.microstream.afs.types.AItem.Base
one.microstream.afs.types.AFile.Wrapper.Abstract<U>
one.microstream.afs.nio.types.NioFileWrapper.Abstract<U>
- All Implemented Interfaces:
NioFileWrapper,NioItemWrapper,AFile,AFile.Wrapper,AItem,AItem.Wrapper
- 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.types.AFile
AFile.Default, AFile.Observer, AFile.WrapperNested classes/interfaces inherited from interface one.microstream.afs.types.AFile.Wrapper
AFile.Wrapper.Abstract<U>Nested classes/interfaces inherited from interface one.microstream.afs.types.AItem
AItem.Abstract, AItem.Base, AItem.WrapperNested classes/interfaces inherited from interface one.microstream.afs.nio.types.NioFileWrapper
NioFileWrapper.Abstract<U> -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstract(AFile actual, U user, Path path, FileChannel fileChannel) -
Method Summary
Modifier and Type Method Description booleancheckChannelOpen()booleancloseChannel()FileChannelensureOpenChannel()FileChannelensureOpenChannel(OpenOption... options)protected voidensurePositionAtFileEnd()FileChannelfileChannel()protected voidinternalSetFileChannel(FileChannel fileChannel)booleanisChannelOpen()booleanisRetired()protected OpenOption[]normalizeOpenOptions(OpenOption... options)booleanopenChannel()booleanopenChannel(OpenOption... options)Pathpath()booleanreopenChannel(OpenOption... options)booleanretire()voidvalidateIsNotRetired()protected abstract voidvalidateOpenOptions(OpenOption... options)Methods inherited from class one.microstream.afs.types.AFile.Wrapper.Abstract
actual, exists, fileSystem, identifier, iterateObservers, mutex, name, parent, registerObserver, removeObserver, type, userMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
Constructor Details
-
Method Details
-
path
- Specified by:
pathin interfaceNioItemWrapper
-
fileChannel
- Specified by:
fileChannelin interfaceNioFileWrapper
-
retire
public boolean retire()- Specified by:
retirein interfaceNioFileWrapper
-
isRetired
public boolean isRetired()- Specified by:
isRetiredin interfaceNioFileWrapper
-
validateIsNotRetired
public void validateIsNotRetired() -
closeChannel
- Specified by:
closeChannelin interfaceNioFileWrapper- Throws:
IORuntimeException
-
isChannelOpen
public boolean isChannelOpen()- Specified by:
isChannelOpenin interfaceNioFileWrapper
-
checkChannelOpen
public boolean checkChannelOpen()- Specified by:
checkChannelOpenin interfaceNioFileWrapper
-
ensureOpenChannel
- Specified by:
ensureOpenChannelin interfaceNioFileWrapper
-
normalizeOpenOptions
-
validateOpenOptions
-
ensureOpenChannel
- Specified by:
ensureOpenChannelin interfaceNioFileWrapper
-
openChannel
- Specified by:
openChannelin interfaceNioFileWrapper- Throws:
IORuntimeException
-
openChannel
- Specified by:
openChannelin interfaceNioFileWrapper- Throws:
IORuntimeException
-
internalSetFileChannel
-
ensurePositionAtFileEnd
- Throws:
IORuntimeException
-
reopenChannel
- Specified by:
reopenChannelin interfaceNioFileWrapper- Throws:
IORuntimeException
-