AcquisitionEvent class final Observe and inspect

Time until a driver lease is granted or acquisition fails. Includes native pool wait/connection setup; it does not separate those driver internals.

Constructors

AcquisitionEvent({required Duration elapsed, required bool reusedConnection, Object? error})
Records connection-wait timing independently of SQL execution timing.
const

Properties

elapsed Duration
Time to obtain a driver lease; zero for an already leased connection.
final
error Object?
Acquisition failure, or null when the callback receives its connection.
final
hashCode int
The hash code for this object.
no setterinherited
reusedConnection bool
Whether execution reused a connection belonging to the current session.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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