Record Class ProbingStep
java.lang.Object
java.lang.Record
google.registry.monitoring.blackbox.ProbingStep
- Record Components:
duration
- Time delay duration between actions.protocol
-Protocol
type for this step.messageTemplate
-OutboundMessageType
instance that serves as template to be modified byToken
.bootstrap
-Bootstrap
instance provided by parentProbingSequence
that allows for creation of new channels.
public record ProbingStep(org.joda.time.Duration duration, Protocol protocol, OutboundMessageType messageTemplate, io.netty.bootstrap.Bootstrap bootstrap)
extends Record
AutoValue
class that represents generator of actions performed at each step in ProbingSequence
.
Holds the unchanged components in a given step of the ProbingSequence
, which are the
OutboundMessageType
, Protocol
, Duration
, and Bootstrap
instances.
It then modifies these components on each loop iteration with the consumed Token
and from
that, generates a new ProbingAction
to call.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionProbingStep
(org.joda.time.Duration duration, Protocol protocol, OutboundMessageType messageTemplate, io.netty.bootstrap.Bootstrap bootstrap) Creates an instance of aProbingStep
record class. -
Method Summary
Modifier and TypeMethodDescriptionio.netty.bootstrap.Bootstrap
Returns the value of thebootstrap
record component.static ProbingStep.Builder
builder()
org.joda.time.Duration
duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.generateAction
(Token token) final int
hashCode()
Returns a hash code value for this object.Returns the value of themessageTemplate
record component.protocol()
Returns the value of theprotocol
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
ProbingStep
public ProbingStep(org.joda.time.Duration duration, Protocol protocol, OutboundMessageType messageTemplate, io.netty.bootstrap.Bootstrap bootstrap) Creates an instance of aProbingStep
record class.- Parameters:
duration
- the value for theduration
record componentprotocol
- the value for theprotocol
record componentmessageTemplate
- the value for themessageTemplate
record componentbootstrap
- the value for thebootstrap
record component
-
-
Method Details
-
builder
-
generateAction
- Throws:
UndeterminedStateException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
duration
public org.joda.time.Duration duration()Returns the value of theduration
record component.- Returns:
- the value of the
duration
record component
-
protocol
Returns the value of theprotocol
record component.- Returns:
- the value of the
protocol
record component
-
messageTemplate
Returns the value of themessageTemplate
record component.- Returns:
- the value of the
messageTemplate
record component
-
bootstrap
public io.netty.bootstrap.Bootstrap bootstrap()Returns the value of thebootstrap
record component.- Returns:
- the value of the
bootstrap
record component
-