Class AbstractNoninterruptibleWritableChannel
java.lang.Object
org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleWritableChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,WritableByteChannel,WritableBufferedByteChannel
abstract class AbstractNoninterruptibleWritableChannel
extends Object
implements WritableBufferedByteChannel
The channel used for writes which cannot be implicitly closed after the operational Thread
is
interrupted.- Since:
- 3.0.0-M5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()protected abstract voidprotected abstract voidfinal booleanisOpen()final intwrite(ByteBuffer src) (package private) intwrite(ByteBuffer src, boolean flush) final voidwriteBuffered(ByteBuffer src) protected abstract voidwriteImpl(ByteBuffer src) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.surefire.api.util.internal.WritableBufferedByteChannel
countBufferOverflows
-
Field Details
-
open
private volatile boolean open
-
-
Constructor Details
-
AbstractNoninterruptibleWritableChannel
AbstractNoninterruptibleWritableChannel()
-
-
Method Details
-
writeImpl
- Throws:
IOException
-
closeImpl
- Throws:
IOException
-
flushImpl
- Throws:
IOException
-
write
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
writeBuffered
- Specified by:
writeBufferedin interfaceWritableBufferedByteChannel- Throws:
IOException
-
write
- Throws:
IOException
-
isOpen
public final boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-