Interface MasterProcessChannelDecoder

  • All Superinterfaces:
    java.lang.AutoCloseable

    public interface MasterProcessChannelDecoder
    extends java.lang.AutoCloseable
    An abstraction for physical decoder of commands. The commands are sent from master Maven process and received by the child forked Surefire process. The session must be open after the MasterProcessChannelDecoderFactory has created the decoder instance. The session can be closed on the decoder instance.
    • Method Detail

      • decode

        @Nonnull
        Command decode()
                throws java.io.IOException
        Reads the bytes from a channel, waiting until the command is read completely or the channel throws EOFException.
        This method is called in a single Thread. The constructor can be called within another thread.
        Returns:
        decoded command
        Throws:
        java.io.IOException - exception in channel
      • close

        void close()
            throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException