Record Class R2dbcDatabaseConfig

java.lang.Object
java.lang.Record
ru.tinkoff.kora.database.r2dbc.R2dbcDatabaseConfig

public record R2dbcDatabaseConfig(String url, String username, String password, String poolName, long connectionTimeout, int acquireRetry, long idleTimeout, long maxLifetime, int maxPoolSize, int minIdle) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    R2dbcDatabaseConfig(String url, String username, String password, String poolName, long connectionTimeout, int acquireRetry, long idleTimeout, long maxLifetime, int maxPoolSize, int minIdle)
    Creates an instance of a R2dbcDatabaseConfig record class.
    R2dbcDatabaseConfig(String url, String username, String password, String poolName, Long connectionTimeout, Integer acquireRetry, Long idleTimeout, Long maxLifetime, Integer maxPoolSize, Integer minPoolSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the acquireRetry record component.
    long
    Returns the value of the connectionTimeout record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the idleTimeout record component.
    long
    Returns the value of the maxLifetime record component.
    int
    Returns the value of the maxPoolSize record component.
    int
    Returns the value of the minIdle record component.
    Returns the value of the password record component.
    Returns the value of the poolName record component.
    final String
    Returns a string representation of this record class.
    url()
    Returns the value of the url record component.
    Returns the value of the username record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • R2dbcDatabaseConfig

      public R2dbcDatabaseConfig(String url, String username, String password, String poolName, @Nullable Long connectionTimeout, @Nullable Integer acquireRetry, @Nullable Long idleTimeout, @Nullable Long maxLifetime, @Nullable Integer maxPoolSize, @Nullable Integer minPoolSize)
    • R2dbcDatabaseConfig

      public R2dbcDatabaseConfig(String url, String username, String password, String poolName, long connectionTimeout, int acquireRetry, long idleTimeout, long maxLifetime, int maxPoolSize, int minIdle)
      Creates an instance of a R2dbcDatabaseConfig record class.
      Parameters:
      url - the value for the url record component
      username - the value for the username record component
      password - the value for the password record component
      poolName - the value for the poolName record component
      connectionTimeout - the value for the connectionTimeout record component
      acquireRetry - the value for the acquireRetry record component
      idleTimeout - the value for the idleTimeout record component
      maxLifetime - the value for the maxLifetime record component
      maxPoolSize - the value for the maxPoolSize record component
      minIdle - the value for the minIdle 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • username

      public String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • password

      public String password()
      Returns the value of the password record component.
      Returns:
      the value of the password record component
    • poolName

      public String poolName()
      Returns the value of the poolName record component.
      Returns:
      the value of the poolName record component
    • connectionTimeout

      public long connectionTimeout()
      Returns the value of the connectionTimeout record component.
      Returns:
      the value of the connectionTimeout record component
    • acquireRetry

      public int acquireRetry()
      Returns the value of the acquireRetry record component.
      Returns:
      the value of the acquireRetry record component
    • idleTimeout

      public long idleTimeout()
      Returns the value of the idleTimeout record component.
      Returns:
      the value of the idleTimeout record component
    • maxLifetime

      public long maxLifetime()
      Returns the value of the maxLifetime record component.
      Returns:
      the value of the maxLifetime record component
    • maxPoolSize

      public int maxPoolSize()
      Returns the value of the maxPoolSize record component.
      Returns:
      the value of the maxPoolSize record component
    • minIdle

      public int minIdle()
      Returns the value of the minIdle record component.
      Returns:
      the value of the minIdle record component