Class CommandChannelDecoder
java.lang.Object
org.apache.maven.surefire.booter.spi.CommandChannelDecoder
- All Implemented Interfaces:
AutoCloseable
,MasterProcessChannelDecoder
magic number : opcode [: opcode specific data]*
- Since:
- 3.0.0-M5
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandDecoder
private AbstractStreamDecoder.Memento
-
Constructor Summary
ConstructorsConstructorDescriptionCommandChannelDecoder
(ReadableByteChannel channel, ForkNodeArguments arguments) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
decode()
Reads the bytes from a channel, waiting until the command is read completely or the channel throwsEOFException
.
-
Field Details
-
decoder
-
memento
-
-
Constructor Details
-
CommandChannelDecoder
public CommandChannelDecoder(@Nonnull ReadableByteChannel channel, @Nonnull ForkNodeArguments arguments)
-
-
Method Details
-
decode
Description copied from interface:MasterProcessChannelDecoder
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.- Specified by:
decode
in interfaceMasterProcessChannelDecoder
- Returns:
- decoded command
- Throws:
IOException
- exception in channel
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceMasterProcessChannelDecoder
- Throws:
IOException
-