discontinuedPackage connect_database has been discontinued.

PoolStatistics class

Statistics snapshot of the connection pool at a point in time.

Constructors

PoolStatistics({required int totalConnections, required int availableConnections, required int inUseConnections, required int waitingRequests, required int maxSize, required bool isInitialized})

Properties

availableConnections → int
Number of connections currently available for use
final
hasAvailable → bool
Returns true if there are connections available
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasWaitingRequests → bool
Returns true if there are requests waiting for connections
no setter
inUseConnections → int
Number of connections currently in use
final
isFull → bool
Returns true if the pool is at maximum capacity
no setter
isInitialized → bool
Whether the pool has been initialized
final
maxSize → int
Maximum number of connections allowed in the pool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalConnections → int
Total number of connections managed by the pool (available + in use)
final
utilization → double
Returns the current utilization as a percentage (0.0 to 1.0)
no setter
waitingRequests → int
Number of requests waiting for a connection
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited