@@ -13,6 +13,7 @@ export class ConnectionPoolMonitoringEvent {
1313 /** The address (host/port pair) of the pool */
1414 address : string ;
1515
16+ /** @internal */
1617 constructor ( pool : ConnectionPool ) {
1718 this . time = new Date ( ) ;
1819 this . address = pool . address ;
@@ -28,6 +29,7 @@ export class ConnectionPoolCreatedEvent extends ConnectionPoolMonitoringEvent {
2829 /** The options used to create this connection pool */
2930 options ?: ConnectionPoolOptions ;
3031
32+ /** @internal */
3133 constructor ( pool : ConnectionPool ) {
3234 super ( pool ) ;
3335 this . options = pool . options ;
@@ -40,6 +42,7 @@ export class ConnectionPoolCreatedEvent extends ConnectionPoolMonitoringEvent {
4042 * @category Event
4143 */
4244export class ConnectionPoolClosedEvent extends ConnectionPoolMonitoringEvent {
45+ /** @internal */
4346 constructor ( pool : ConnectionPool ) {
4447 super ( pool ) ;
4548 }
@@ -54,6 +57,7 @@ export class ConnectionCreatedEvent extends ConnectionPoolMonitoringEvent {
5457 /** A monotonically increasing, per-pool id for the newly created connection */
5558 connectionId : number | '<monitor>' ;
5659
60+ /** @internal */
5761 constructor ( pool : ConnectionPool , connection : Connection ) {
5862 super ( pool ) ;
5963 this . connectionId = connection . id ;
@@ -69,6 +73,7 @@ export class ConnectionReadyEvent extends ConnectionPoolMonitoringEvent {
6973 /** The id of the connection */
7074 connectionId : number | '<monitor>' ;
7175
76+ /** @internal */
7277 constructor ( pool : ConnectionPool , connection : Connection ) {
7378 super ( pool ) ;
7479 this . connectionId = connection . id ;
@@ -86,6 +91,7 @@ export class ConnectionClosedEvent extends ConnectionPoolMonitoringEvent {
8691 /** The reason the connection was closed */
8792 reason : string ;
8893
94+ /** @internal */
8995 constructor ( pool : ConnectionPool , connection : Connection , reason : string ) {
9096 super ( pool ) ;
9197 this . connectionId = connection . id ;
@@ -99,6 +105,7 @@ export class ConnectionClosedEvent extends ConnectionPoolMonitoringEvent {
99105 * @category Event
100106 */
101107export class ConnectionCheckOutStartedEvent extends ConnectionPoolMonitoringEvent {
108+ /** @internal */
102109 constructor ( pool : ConnectionPool ) {
103110 super ( pool ) ;
104111 }
@@ -113,6 +120,7 @@ export class ConnectionCheckOutFailedEvent extends ConnectionPoolMonitoringEvent
113120 /** The reason the attempt to check out failed */
114121 reason : AnyError | string ;
115122
123+ /** @internal */
116124 constructor ( pool : ConnectionPool , reason : AnyError | string ) {
117125 super ( pool ) ;
118126 this . reason = reason ;
@@ -128,6 +136,7 @@ export class ConnectionCheckedOutEvent extends ConnectionPoolMonitoringEvent {
128136 /** The id of the connection */
129137 connectionId : number | '<monitor>' ;
130138
139+ /** @internal */
131140 constructor ( pool : ConnectionPool , connection : Connection ) {
132141 super ( pool ) ;
133142 this . connectionId = connection . id ;
@@ -143,6 +152,7 @@ export class ConnectionCheckedInEvent extends ConnectionPoolMonitoringEvent {
143152 /** The id of the connection */
144153 connectionId : number | '<monitor>' ;
145154
155+ /** @internal */
146156 constructor ( pool : ConnectionPool , connection : Connection ) {
147157 super ( pool ) ;
148158 this . connectionId = connection . id ;
@@ -155,6 +165,7 @@ export class ConnectionCheckedInEvent extends ConnectionPoolMonitoringEvent {
155165 * @category Event
156166 */
157167export class ConnectionPoolClearedEvent extends ConnectionPoolMonitoringEvent {
168+ /** @internal */
158169 constructor ( pool : ConnectionPool ) {
159170 super ( pool ) ;
160171 }
0 commit comments