Record Class Config.Database.PoolSettings

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Config.Database.PoolSettings
Enclosing class:
Config.Database

public static record Config.Database.PoolSettings(Integer maxSize, Integer minIdle, Long maxLifetime, Long keepaliveTime, Long connectionTimeout) extends Record
Since:
1.7.1
  • Constructor Details

    • PoolSettings

      public PoolSettings(Integer maxSize, Integer minIdle, Long maxLifetime, Long keepaliveTime, Long connectionTimeout)
      Creates an instance of a PoolSettings record class.
      Parameters:
      maxSize - the value for the maxSize record component
      minIdle - the value for the minIdle record component
      maxLifetime - the value for the maxLifetime record component
      keepaliveTime - the value for the keepaliveTime record component
      connectionTimeout - the value for the connectionTimeout record component
  • Method Details

    • builder

    • toBuilder

    • withMaxSize

      public Config.Database.PoolSettings withMaxSize(Integer maxSize)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMinIdle

      public Config.Database.PoolSettings withMinIdle(Integer minIdle)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMaxLifetime

      public Config.Database.PoolSettings withMaxLifetime(Long maxLifetime)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withKeepaliveTime

      public Config.Database.PoolSettings withKeepaliveTime(Long keepaliveTime)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withConnectionTimeout

      public Config.Database.PoolSettings withConnectionTimeout(Long connectionTimeout)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • 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.
    • maxSize

      public Integer maxSize()
      Returns the value of the maxSize record component.
      Returns:
      the value of the maxSize record component
    • minIdle

      public Integer minIdle()
      Returns the value of the minIdle record component.
      Returns:
      the value of the minIdle record component
    • maxLifetime

      public Long maxLifetime()
      Returns the value of the maxLifetime record component.
      Returns:
      the value of the maxLifetime record component
    • keepaliveTime

      public Long keepaliveTime()
      Returns the value of the keepaliveTime record component.
      Returns:
      the value of the keepaliveTime record component
    • connectionTimeout

      public Long connectionTimeout()
      Returns the value of the connectionTimeout record component.
      Returns:
      the value of the connectionTimeout record component