Class TestLessInputStream.TestLessInputStreamBuilder
- java.lang.Object
-
- org.apache.maven.plugin.surefire.booterclient.lazytestprovider.TestLessInputStream.TestLessInputStreamBuilder
-
- Enclosing class:
- TestLessInputStream
public static final class TestLessInputStream.TestLessInputStreamBuilder extends java.lang.Object
Buildsstreams
, registers cachable commands and provides accessible API to dispatch immediate commands to all atomically alive streams.
-
-
Constructor Summary
Constructors Constructor Description TestLessInputStreamBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestLessInputStream
build()
NotifiableTestStream
getCachableCommands()
Cached commands are sent to all alive or future alive forks.NotifiableTestStream
getImmediateCommands()
OnlyNotifiableTestStream.noop()
andNotifiableTestStream.shutdown(Shutdown)
are supported.void
removeStream(TestLessInputStream is)
-
-
-
Method Detail
-
build
public TestLessInputStream build()
-
removeStream
public void removeStream(TestLessInputStream is)
-
getImmediateCommands
public NotifiableTestStream 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
public NotifiableTestStream 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.
-
-