Package ru.tinkoff.kora.database.r2dbc
Record Class R2dbcDatabaseConfig
java.lang.Object
java.lang.Record
ru.tinkoff.kora.database.r2dbc.R2dbcDatabaseConfig
-
Constructor Summary
ConstructorsConstructorDescriptionR2dbcDatabaseConfig(String url, String username, String password, String poolName, long connectionTimeout, int acquireRetry, long idleTimeout, long maxLifetime, int maxPoolSize, int minIdle) Creates an instance of aR2dbcDatabaseConfigrecord 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 TypeMethodDescriptionintReturns the value of theacquireRetryrecord component.longReturns the value of theconnectionTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theidleTimeoutrecord component.longReturns the value of themaxLifetimerecord component.intReturns the value of themaxPoolSizerecord component.intminIdle()Returns the value of theminIdlerecord component.password()Returns the value of thepasswordrecord component.poolName()Returns the value of thepoolNamerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
R2dbcDatabaseConfig
-
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 aR2dbcDatabaseConfigrecord class.- Parameters:
url- the value for theurlrecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord componentpoolName- the value for thepoolNamerecord componentconnectionTimeout- the value for theconnectionTimeoutrecord componentacquireRetry- the value for theacquireRetryrecord componentidleTimeout- the value for theidleTimeoutrecord componentmaxLifetime- the value for themaxLifetimerecord componentmaxPoolSize- the value for themaxPoolSizerecord componentminIdle- the value for theminIdlerecord component
-
-
Method Details
-
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. -
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
poolName
Returns the value of thepoolNamerecord component.- Returns:
- the value of the
poolNamerecord component
-
connectionTimeout
public long connectionTimeout()Returns the value of theconnectionTimeoutrecord component.- Returns:
- the value of the
connectionTimeoutrecord component
-
acquireRetry
public int acquireRetry()Returns the value of theacquireRetryrecord component.- Returns:
- the value of the
acquireRetryrecord component
-
idleTimeout
public long idleTimeout()Returns the value of theidleTimeoutrecord component.- Returns:
- the value of the
idleTimeoutrecord component
-
maxLifetime
public long maxLifetime()Returns the value of themaxLifetimerecord component.- Returns:
- the value of the
maxLifetimerecord component
-
maxPoolSize
public int maxPoolSize()Returns the value of themaxPoolSizerecord component.- Returns:
- the value of the
maxPoolSizerecord component
-
minIdle
public int minIdle()Returns the value of theminIdlerecord component.- Returns:
- the value of the
minIdlerecord component
-