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 class
Event is persisted.private final class
private final class
Event 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.Node
private final ReentrantReadWriteLock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
addTailNodeIfAbsent
(Command command) build()
The iterator is not thread safe.private static TestLessInputStream.TestLessInputStreamBuilder.Node
void
-
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)
-