Record Class Config.Database.PoolSettings
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Config.Database.PoolSettings
- Enclosing class:
Config.Database
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns 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.Returns the value of thekeepaliveTimerecord component.Returns the value of themaxLifetimerecord component.maxSize()Returns the value of themaxSizerecord component.minIdle()Returns the value of theminIdlerecord component.final StringtoString()Returns a string representation of this record class.withConnectionTimeout(Long connectionTimeout) withKeepaliveTime(Long keepaliveTime) withMaxLifetime(Long maxLifetime) withMaxSize(Integer maxSize) withMinIdle(Integer minIdle)
-
Constructor Details
-
PoolSettings
public PoolSettings(Integer maxSize, Integer minIdle, Long maxLifetime, Long keepaliveTime, Long connectionTimeout) Creates an instance of aPoolSettingsrecord class.- Parameters:
maxSize- the value for themaxSizerecord componentminIdle- the value for theminIdlerecord componentmaxLifetime- the value for themaxLifetimerecord componentkeepaliveTime- the value for thekeepaliveTimerecord componentconnectionTimeout- the value for theconnectionTimeoutrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withMaxSize
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMinIdle
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMaxLifetime
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withKeepaliveTime
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withConnectionTimeout
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
maxSize
Returns the value of themaxSizerecord component.- Returns:
- the value of the
maxSizerecord component
-
minIdle
Returns the value of theminIdlerecord component.- Returns:
- the value of the
minIdlerecord component
-
maxLifetime
Returns the value of themaxLifetimerecord component.- Returns:
- the value of the
maxLifetimerecord component
-
keepaliveTime
Returns the value of thekeepaliveTimerecord component.- Returns:
- the value of the
keepaliveTimerecord component
-
connectionTimeout
Returns the value of theconnectionTimeoutrecord component.- Returns:
- the value of the
connectionTimeoutrecord component
-