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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classEvent is persisted.private final classprivate final classEvent is called just now for all alive streams and command is not persisted.private static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Queue<TestLessInputStream>private final TestLessInputStream.TestLessInputStreamBuilder.Nodeprivate final ReentrantReadWriteLock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanaddTailNodeIfAbsent(Command command) build()The iterator is not thread safe.private static TestLessInputStream.TestLessInputStreamBuilder.Nodevoid
-
Field Details
-
rwLock
-
aliveStreams
-
immediateCommands
-
cachableCommands
-
head
-
iterableCachable
-
-
Constructor Details
-
TestLessInputStreamBuilder
public TestLessInputStreamBuilder()
-
-
Method Details
-
build
-
removeStream
-
getImmediateCommands
-
getCachableCommands
-
getIterableCachable
The iterator is not thread safe. -
addTailNodeIfAbsent
-
nextCachedNode
private static TestLessInputStream.TestLessInputStreamBuilder.Node nextCachedNode(TestLessInputStream.TestLessInputStreamBuilder.Node current)
-