Class AbstractNoninterruptibleReadableChannel
java.lang.Object
org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleReadableChannel
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,ReadableByteChannel
abstract class AbstractNoninterruptibleReadableChannel
extends Object
implements ReadableByteChannel
The channel used for reads 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
final boolean
isOpen()
final int
read
(ByteBuffer src) protected abstract int
readImpl
(ByteBuffer src)
-
Field Details
-
open
private volatile boolean open
-
-
Constructor Details
-
AbstractNoninterruptibleReadableChannel
AbstractNoninterruptibleReadableChannel()
-
-
Method Details
-
readImpl
- Throws:
IOException
-
closeImpl
- Throws:
IOException
-
read
- Specified by:
read
in interfaceReadableByteChannel
- 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
-