Class TestLessInputStream.TestLessInputStreamBuilder
java.lang.Object
org.apache.maven.plugin.surefire.booterclient.lazytestprovider.TestLessInputStream.TestLessInputStreamBuilder
- Enclosing class:
- TestLessInputStream
Builds
streams
, registers cachable commands
and provides accessible API to dispatch immediate commands to all atomically
alive streams.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Cached commands are sent to all alive or future alive forks.OnlyNotifiableTestStream.noop()
andNotifiableTestStream.shutdown(Shutdown)
are supported.void
-
Constructor Details
-
TestLessInputStreamBuilder
public TestLessInputStreamBuilder()
-
-
Method Details
-
build
-
removeStream
-
getImmediateCommands
OnlyNotifiableTestStream.noop()
andNotifiableTestStream.shutdown(Shutdown)
are supported. Another methods throwUnsupportedOperationException
.- Returns:
- commands which are immediately transmitted once to all alive forked JVMs, not cached. As opposite to cached commands, the immediate commands disappear and cannot be seen by any fork initiated after the command has dispatched.
-
getCachableCommands
Cached commands are sent to all alive or future alive forks. These are termination commands which are not reversible and therefore onlyNotifiableTestStream.shutdown(Shutdown)
andNotifiableTestStream.skipSinceNextTest()
are supported. Another methods throwUnsupportedOperationException
.- Returns:
- commands which are cached for currently alive or future forks.
-