Record Class Tm1Properties.Timeouts

java.lang.Object
java.lang.Record
io.skipcheck.tm1.spring.boot.autoconfigure.Tm1Properties.Timeouts
Record Components:
connect - how long to wait for a connection, including TLS
login - how long to wait for a login response
request - how long a request may go without receiving data
close - how long to wait for TM1 to close a session
refusedLogin - how long a login TM1 refused is remembered before trying again
Enclosing class:
Tm1Properties

public static record Tm1Properties.Timeouts(@Nullable Duration connect, @Nullable Duration login, @Nullable Duration request, @Nullable Duration close, @Nullable Duration refusedLogin) extends Record
Timeouts by kind of work; unset ones keep the client's defaults (see Tm1Timeouts).
  • Constructor Details

    • Timeouts

      public Timeouts(@Nullable Duration connect, @Nullable Duration login, @Nullable Duration request, @Nullable Duration close, @Nullable Duration refusedLogin)
      Creates an instance of a Timeouts record class.
      Parameters:
      connect - the value for the connect record component
      login - the value for the login record component
      request - the value for the request record component
      close - the value for the close record component
      refusedLogin - the value for the refusedLogin record component
  • Method Details

    • 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.
    • connect

      public @Nullable Duration connect()
      Returns the value of the connect record component.
      Returns:
      the value of the connect record component
    • login

      public @Nullable Duration login()
      Returns the value of the login record component.
      Returns:
      the value of the login record component
    • request

      public @Nullable Duration request()
      Returns the value of the request record component.
      Returns:
      the value of the request record component
    • close

      public @Nullable Duration close()
      Returns the value of the close record component.
      Returns:
      the value of the close record component
    • refusedLogin

      public @Nullable Duration refusedLogin()
      Returns the value of the refusedLogin record component.
      Returns:
      the value of the refusedLogin record component