Record Class ProbeRecord
java.lang.Object
java.lang.Record
org.infosmid.stream.kubernetes.ProbeRecord
public record ProbeRecord(HTTPGetActionRecord httpGet, ExecActionRecord exec, TCPSocketActionRecord tcpSocket, Integer initialDelaySeconds, Integer periodSeconds, Integer timeoutSeconds, Integer failureThreshold, Integer successThreshold)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionProbeRecord(HTTPGetActionRecord httpGet, ExecActionRecord exec, TCPSocketActionRecord tcpSocket, Integer initialDelaySeconds, Integer periodSeconds, Integer timeoutSeconds, Integer failureThreshold, Integer successThreshold) Creates an instance of aProbeRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.exec()Returns the value of theexecrecord component.static ProbeRecordReturns the value of thefailureThresholdrecord component.final inthashCode()Returns a hash code value for this object.static ProbeRecordhttpGet()Returns the value of thehttpGetrecord component.Returns the value of theinitialDelaySecondsrecord component.Returns the value of theperiodSecondsrecord component.Returns the value of thesuccessThresholdrecord component.static ProbeRecordtcp(int port) Returns the value of thetcpSocketrecord component.Returns the value of thetimeoutSecondsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProbeRecord
public ProbeRecord(HTTPGetActionRecord httpGet, ExecActionRecord exec, TCPSocketActionRecord tcpSocket, Integer initialDelaySeconds, Integer periodSeconds, Integer timeoutSeconds, Integer failureThreshold, Integer successThreshold) Creates an instance of aProbeRecordrecord class.- Parameters:
httpGet- the value for thehttpGetrecord componentexec- the value for theexecrecord componenttcpSocket- the value for thetcpSocketrecord componentinitialDelaySeconds- the value for theinitialDelaySecondsrecord componentperiodSeconds- the value for theperiodSecondsrecord componenttimeoutSeconds- the value for thetimeoutSecondsrecord componentfailureThreshold- the value for thefailureThresholdrecord componentsuccessThreshold- the value for thesuccessThresholdrecord component
-
-
Method Details
-
http
-
exec
-
tcp
-
toString
-
hashCode
-
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). -
httpGet
Returns the value of thehttpGetrecord component.- Returns:
- the value of the
httpGetrecord component
-
exec
Returns the value of theexecrecord component.- Returns:
- the value of the
execrecord component
-
tcpSocket
Returns the value of thetcpSocketrecord component.- Returns:
- the value of the
tcpSocketrecord component
-
initialDelaySeconds
Returns the value of theinitialDelaySecondsrecord component.- Returns:
- the value of the
initialDelaySecondsrecord component
-
periodSeconds
Returns the value of theperiodSecondsrecord component.- Returns:
- the value of the
periodSecondsrecord component
-
timeoutSeconds
Returns the value of thetimeoutSecondsrecord component.- Returns:
- the value of the
timeoutSecondsrecord component
-
failureThreshold
Returns the value of thefailureThresholdrecord component.- Returns:
- the value of the
failureThresholdrecord component
-
successThreshold
Returns the value of thesuccessThresholdrecord component.- Returns:
- the value of the
successThresholdrecord component
-