Class Channels
java.lang.Object
org.apache.maven.surefire.api.util.internal.Channels
Converts
We do not use the Java's utility class
OutputStream
, PrintStream
, InputStream
to the Java Channel
.
We do not use the Java's utility class
Channels
because the utility closes the stream as
soon as the particular Thread is interrupted. If the frameworks (Zookeeper, Netty) interrupts the thread, the
communication channels become closed and the JVM hangs. Therefore we developed internal utility which is safe for the
Surefire.- Since:
- 3.0.0-M5
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReadableByteChannel
static WritableBufferedByteChannel
static ReadableByteChannel
static WritableByteChannel
newChannel
(OutputStream out) static InputStream
newInputStream
(AsynchronousByteChannel channel) static OutputStream
newOutputStream
(AsynchronousByteChannel channel)
-
Method Details
-
newChannel
-
newBufferedChannel
-
newChannel
-
newBufferedChannel
-
newOutputStream
-
newInputStream
-