Interface MasterProcessChannelDecoder
- All Superinterfaces:
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 TypeMethodDescriptionvoid
close()
decode()
Reads the bytes from a channel, waiting until the command is read completely or the channel throwsEOFException
.
-
Method Details
-
decode
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
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-