Interface MasterProcessChannelDecoder

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
CommandChannelDecoder

public interface MasterProcessChannelDecoder extends 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 Summary

    Modifier and Type
    Method
    Description
    void
     
    Reads the bytes from a channel, waiting until the command is read completely or the channel throws EOFException.
  • Method Details

    • decode

      @Nonnull Command decode() throws 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:
      IOException - exception in channel
    • close

      void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException