Package dev.unnm3d.redischat.settings
Record Class Config.Mysql
java.lang.Object
java.lang.Record
dev.unnm3d.redischat.settings.Config.Mysql
- Enclosing class:
Config
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionParametersrecord component.database()Returns the value of thedatabaserecord component.Returns the value of thedriverClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.password()Returns the value of thepasswordrecord component.intpoolIdle()Returns the value of thepoolIdlerecord component.longReturns the value of thepoolKeepAliverecord component.longReturns the value of thepoolLifetimerecord component.intpoolSize()Returns the value of thepoolSizerecord component.longReturns the value of thepoolTimeoutrecord component.intport()Returns the value of theportrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
Mysql
public Mysql(String host, int port, String database, String driverClass, String connectionParameters, String username, String password, int poolSize, int poolIdle, long poolLifetime, long poolKeepAlive, long poolTimeout) Creates an instance of aMysqlrecord class.- Parameters:
host- the value for thehostrecord componentport- the value for theportrecord componentdatabase- the value for thedatabaserecord componentdriverClass- the value for thedriverClassrecord componentconnectionParameters- the value for theconnectionParametersrecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord componentpoolSize- the value for thepoolSizerecord componentpoolIdle- the value for thepoolIdlerecord componentpoolLifetime- the value for thepoolLifetimerecord componentpoolKeepAlive- the value for thepoolKeepAliverecord componentpoolTimeout- the value for thepoolTimeoutrecord 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 '=='. -
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
database
Returns the value of thedatabaserecord component.- Returns:
- the value of the
databaserecord component
-
driverClass
Returns the value of thedriverClassrecord component.- Returns:
- the value of the
driverClassrecord component
-
connectionParameters
Returns the value of theconnectionParametersrecord component.- Returns:
- the value of the
connectionParametersrecord 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
-
poolSize
public int poolSize()Returns the value of thepoolSizerecord component.- Returns:
- the value of the
poolSizerecord component
-
poolIdle
public int poolIdle()Returns the value of thepoolIdlerecord component.- Returns:
- the value of the
poolIdlerecord component
-
poolLifetime
public long poolLifetime()Returns the value of thepoolLifetimerecord component.- Returns:
- the value of the
poolLifetimerecord component
-
poolKeepAlive
public long poolKeepAlive()Returns the value of thepoolKeepAliverecord component.- Returns:
- the value of the
poolKeepAliverecord component
-
poolTimeout
public long poolTimeout()Returns the value of thepoolTimeoutrecord component.- Returns:
- the value of the
poolTimeoutrecord component
-