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 Details

    • ProbeRecord

      public ProbeRecord(HTTPGetActionRecord httpGet, ExecActionRecord exec, TCPSocketActionRecord tcpSocket, Integer initialDelaySeconds, Integer periodSeconds, Integer timeoutSeconds, Integer failureThreshold, Integer successThreshold)
      Creates an instance of a ProbeRecord record class.
      Parameters:
      httpGet - the value for the httpGet record component
      exec - the value for the exec record component
      tcpSocket - the value for the tcpSocket record component
      initialDelaySeconds - the value for the initialDelaySeconds record component
      periodSeconds - the value for the periodSeconds record component
      timeoutSeconds - the value for the timeoutSeconds record component
      failureThreshold - the value for the failureThreshold record component
      successThreshold - the value for the successThreshold record component
  • Method Details

    • http

      public static ProbeRecord http(String path, int port)
    • exec

      public static ProbeRecord exec(List<String> command)
    • tcp

      public static ProbeRecord tcp(int port)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • httpGet

      public HTTPGetActionRecord httpGet()
      Returns the value of the httpGet record component.
      Returns:
      the value of the httpGet record component
    • exec

      public ExecActionRecord exec()
      Returns the value of the exec record component.
      Returns:
      the value of the exec record component
    • tcpSocket

      public TCPSocketActionRecord tcpSocket()
      Returns the value of the tcpSocket record component.
      Returns:
      the value of the tcpSocket record component
    • initialDelaySeconds

      public Integer initialDelaySeconds()
      Returns the value of the initialDelaySeconds record component.
      Returns:
      the value of the initialDelaySeconds record component
    • periodSeconds

      public Integer periodSeconds()
      Returns the value of the periodSeconds record component.
      Returns:
      the value of the periodSeconds record component
    • timeoutSeconds

      public Integer timeoutSeconds()
      Returns the value of the timeoutSeconds record component.
      Returns:
      the value of the timeoutSeconds record component
    • failureThreshold

      public Integer failureThreshold()
      Returns the value of the failureThreshold record component.
      Returns:
      the value of the failureThreshold record component
    • successThreshold

      public Integer successThreshold()
      Returns the value of the successThreshold record component.
      Returns:
      the value of the successThreshold record component