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 ReadableByteChannelstatic WritableBufferedByteChannelstatic ReadableByteChannelstatic WritableByteChannelnewChannel(OutputStream out) static InputStreamnewInputStream(AsynchronousByteChannel channel) static OutputStreamnewOutputStream(AsynchronousByteChannel channel)
-
Method Details
-
newChannel
-
newBufferedChannel
-
newChannel
-
newBufferedChannel
-
newOutputStream
-
newInputStream
-