Class ProbingSequence
ProbingStep
s that the Prober performs in order.
Inherits from CircularList
, with element type of ProbingStep
as the manner in
which the sequence is carried out is similar to the CircularList
. However, the ProbingSequence.Builder
of ProbingSequence
override CircularList.AbstractBuilder
allowing for
more customized flows, that are looped, but not necessarily entirely circular. Example: first
-> second -> third -> fourth -> second -> third -> fourth -> second ->...
Created with ProbingSequence.Builder
where we specify EventLoopGroup
, AbstractChannel
class type, then sequentially add in the ProbingStep.Builder
s in order and mark which one
is the first repeated step.
ProbingSequence
implicitly points each ProbingStep
to the next one, so once
the first one is activated with the requisite Token
, the ProbingStep
s do the rest
of the work.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
TurnsProbingStep.Builder
s into fully self-dependent sequence with suppliedBootstrap
.Nested classes/interfaces inherited from class google.registry.util.CircularList
CircularList.AbstractBuilder<T,
C extends CircularList<T>> -
Method Summary
Modifier and TypeMethodDescriptionnext()
Obtains nextProbingSequence
in sequence.void
start()
Starts ProbingSequence by calling firstrunStep
withstartToken
.Methods inherited from class google.registry.util.CircularList
get, setNext
-
Method Details
-
next
Obtains nextProbingSequence
in sequence.- Overrides:
next
in classCircularList<ProbingStep>
-
start
public void start()Starts ProbingSequence by calling firstrunStep
withstartToken
.
-