Record Class PoolInfo
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.datasource.model.PoolInfo
- Record Components:
provider- The pool provider namepoolName- The configured pool nameimplementation- The concrete datasource implementation classstats- The current connection pool statisticsoptionGroups- The connection pool option groups
public record PoolInfo(String provider, String poolName, String implementation, PoolInfo.PoolStats stats, List<PoolInfo.PoolOptionGroup> optionGroups)
extends Record
Connection pool metadata displayed in the datasource panel.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA displayable pool configuration option.static final recordA grouped set of pool configuration options.static final recordConnection pool status metrics. -
Constructor Summary
ConstructorsConstructorDescriptionPoolInfo(String provider, String poolName, String implementation, PoolInfo.PoolStats stats, List<PoolInfo.PoolOptionGroup> optionGroups) Creates an instance of aPoolInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimplementationrecord component.Returns the value of theoptionGroupsrecord component.poolName()Returns the value of thepoolNamerecord component.provider()Returns the value of theproviderrecord component.stats()Returns the value of thestatsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PoolInfo
public PoolInfo(String provider, String poolName, String implementation, PoolInfo.PoolStats stats, List<PoolInfo.PoolOptionGroup> optionGroups) Creates an instance of aPoolInforecord class.- Parameters:
provider- the value for theproviderrecord componentpoolName- the value for thepoolNamerecord componentimplementation- the value for theimplementationrecord componentstats- the value for thestatsrecord componentoptionGroups- the value for theoptionGroupsrecord component
-
-
Method Details
-
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). -
provider
-
poolName
-
implementation
Returns the value of theimplementationrecord component.- Returns:
- the value of the
implementationrecord component
-
stats
-
optionGroups
Returns the value of theoptionGroupsrecord component.- Returns:
- the value of the
optionGroupsrecord component
-