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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionParameters
record component.database()
Returns the value of thedatabase
record component.Returns the value of thedriverClass
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.host()
Returns the value of thehost
record component.password()
Returns the value of thepassword
record component.int
poolIdle()
Returns the value of thepoolIdle
record component.long
Returns the value of thepoolKeepAlive
record component.long
Returns the value of thepoolLifetime
record component.int
poolSize()
Returns the value of thepoolSize
record component.long
Returns the value of thepoolTimeout
record component.int
port()
Returns the value of theport
record component.final String
toString()
Returns a string representation of this record class.username()
Returns the value of theusername
record 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 aMysql
record class.- Parameters:
host
- the value for thehost
record componentport
- the value for theport
record componentdatabase
- the value for thedatabase
record componentdriverClass
- the value for thedriverClass
record componentconnectionParameters
- the value for theconnectionParameters
record componentusername
- the value for theusername
record componentpassword
- the value for thepassword
record componentpoolSize
- the value for thepoolSize
record componentpoolIdle
- the value for thepoolIdle
record componentpoolLifetime
- the value for thepoolLifetime
record componentpoolKeepAlive
- the value for thepoolKeepAlive
record componentpoolTimeout
- the value for thepoolTimeout
record 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 thehost
record component.- Returns:
- the value of the
host
record component
-
port
public int port()Returns the value of theport
record component.- Returns:
- the value of the
port
record component
-
database
Returns the value of thedatabase
record component.- Returns:
- the value of the
database
record component
-
driverClass
Returns the value of thedriverClass
record component.- Returns:
- the value of the
driverClass
record component
-
connectionParameters
Returns the value of theconnectionParameters
record component.- Returns:
- the value of the
connectionParameters
record component
-
username
Returns the value of theusername
record component.- Returns:
- the value of the
username
record component
-
password
Returns the value of thepassword
record component.- Returns:
- the value of the
password
record component
-
poolSize
public int poolSize()Returns the value of thepoolSize
record component.- Returns:
- the value of the
poolSize
record component
-
poolIdle
public int poolIdle()Returns the value of thepoolIdle
record component.- Returns:
- the value of the
poolIdle
record component
-
poolLifetime
public long poolLifetime()Returns the value of thepoolLifetime
record component.- Returns:
- the value of the
poolLifetime
record component
-
poolKeepAlive
public long poolKeepAlive()Returns the value of thepoolKeepAlive
record component.- Returns:
- the value of the
poolKeepAlive
record component
-
poolTimeout
public long poolTimeout()Returns the value of thepoolTimeout
record component.- Returns:
- the value of the
poolTimeout
record component
-