Interface MasterProcessChannelDecoder
-
- All Superinterfaces:
AutoCloseable
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Command
decode()
Reads the bytes from a channel, waiting until the command is read completely or the channel throwsEOFException
.
-
-
-
Method Detail
-
decode
@Nonnull Command decode() throws IOException
Reads the bytes from a channel, waiting until the command is read completely or the channel throwsEOFException
.
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 interfaceAutoCloseable
- Throws:
IOException
-
-