Class ProbingSequence.Builder
java.lang.Object
google.registry.util.CircularList.AbstractBuilder<ProbingStep,ProbingSequence>
google.registry.monitoring.blackbox.ProbingSequence.Builder
- Enclosing class:
ProbingSequence
public static class ProbingSequence.Builder
extends CircularList.AbstractBuilder<ProbingStep,ProbingSequence>
Turns
ProbingStep.Builder
s into fully self-dependent sequence with supplied Bootstrap
.-
Field Summary
Fields inherited from class google.registry.util.CircularList.AbstractBuilder
current, first
-
Constructor Summary
ConstructorDescriptionBuilder
(Token startToken, MetricsCollector metrics, Clock clock) This Builder must also be supplied with aToken
to construct aProbingSequence
. -
Method Summary
Modifier and TypeMethodDescriptionadd
(ProbingStep value) Sets currentC
to element added and points previousC
to this one.build()
Points lastProbingStep
to thefirstRepeatedSequenceStep
and calls private constructor to createProbingSequence
.protected ProbingSequence
create
(ProbingStep value) Necessary to instantiate eachC
object fromvalue
.We take special note of the first repeated step.Methods inherited from class google.registry.util.CircularList.AbstractBuilder
add
-
Constructor Details
-
Builder
This Builder must also be supplied with aToken
to construct aProbingSequence
.
-
-
Method Details
-
markFirstRepeated
We take special note of the first repeated step. -
add
Description copied from class:CircularList.AbstractBuilder
Sets currentC
to element added and points previousC
to this one.- Overrides:
add
in classCircularList.AbstractBuilder<ProbingStep,
ProbingSequence>
-
create
Description copied from class:CircularList.AbstractBuilder
Necessary to instantiate eachC
object fromvalue
.- Specified by:
create
in classCircularList.AbstractBuilder<ProbingStep,
ProbingSequence>
-
build
Points lastProbingStep
to thefirstRepeatedSequenceStep
and calls private constructor to createProbingSequence
.- Overrides:
build
in classCircularList.AbstractBuilder<ProbingStep,
ProbingSequence>
-