Record Class DataConnectionConfig
java.lang.Object
java.lang.Record
com.loomcache.common.config.DataConnectionConfig
- Record Components:
name- unique connection namejdbcUrl- JDBC URL supplied by the operatordriverClassName- optional JDBC driver class to load before connectingusername- optional JDBC usernamepassword- optional JDBC passwordmaxPoolSize- maximum physical JDBC connections kept by a pooled storeproperties- additional JDBC connection properties
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataConnectionConfig.Builderbuilder()@Nullable StringReturns the value of thedriverClassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jdbcUrl()Returns the value of thejdbcUrlrecord component.intReturns the value of themaxPoolSizerecord component.name()Returns the value of thenamerecord component.@Nullable Stringpassword()Returns the value of thepasswordrecord component.Returns the value of thepropertiesrecord component.toString()Returns a string representation of this record class.@Nullable Stringusername()Returns the value of theusernamerecord component.
-
Field Details
-
DEFAULT_MAX_POOL_SIZE
public static final int DEFAULT_MAX_POOL_SIZE- See Also:
-
-
Constructor Details
-
DataConnectionConfig
public DataConnectionConfig(String name, String jdbcUrl, @Nullable String driverClassName, @Nullable String username, @Nullable String password, int maxPoolSize, Map<String, String> properties) Creates an instance of aDataConnectionConfigrecord class.- Parameters:
name- the value for thenamerecord componentjdbcUrl- the value for thejdbcUrlrecord componentdriverClassName- the value for thedriverClassNamerecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord componentmaxPoolSize- the value for themaxPoolSizerecord componentproperties- the value for thepropertiesrecord component
-
-
Method Details
-
builder
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
name
-
jdbcUrl
-
driverClassName
Returns the value of thedriverClassNamerecord component.- Returns:
- the value of the
driverClassNamerecord component
-
username
-
password
-
maxPoolSize
public int maxPoolSize()Returns the value of themaxPoolSizerecord component.- Returns:
- the value of the
maxPoolSizerecord component
-