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 void
close()
protected abstract void
protected abstract void
final boolean
isOpen()
final int
write
(ByteBuffer src) (package private) int
write
(ByteBuffer src, boolean flush) final void
writeBuffered
(ByteBuffer src) protected abstract void
writeImpl
(ByteBuffer src) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
write
in interfaceWritableByteChannel
- Throws:
IOException
-
writeBuffered
- Specified by:
writeBuffered
in interfaceWritableBufferedByteChannel
- Throws:
IOException
-
write
- Throws:
IOException
-
isOpen
public final boolean isOpen() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-