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.WrapperNested 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.WrapperNested 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 booleancheckChannelOpen()booleancloseChannel()FileChannelensureOpenChannel()FileChannelensureOpenChannel(OpenOption... options)FileChannelfileChannel()booleanisChannelOpen()booleanisRetired()booleanopenChannel()booleanopenChannel(OpenOption... options)Pathpath()booleanreopenChannel(OpenOption... options)booleanretire()voidvalidateIsNotRetired()Methods inherited from class one.microstream.afs.AFile.Wrapper.Abstract
actual, exists, fileSystem, identifier, iterateObservers, 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.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:
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
-
ensureOpenChannel
- Specified by:
ensureOpenChannelin interfaceNioFileWrapper
-
openChannel
- Specified by:
openChannelin interfaceNioFileWrapper- Throws:
IORuntimeException
-
openChannel
- Specified by:
openChannelin interfaceNioFileWrapper- Throws:
IORuntimeException
-
reopenChannel
- Specified by:
reopenChannelin interfaceNioFileWrapper- Throws:
IORuntimeException
-