@@ -13,6 +13,7 @@ export class ConnectionPoolMonitoringEvent {
13
13
/** The address (host/port pair) of the pool */
14
14
address : string ;
15
15
16
+ /** @internal */
16
17
constructor ( pool : ConnectionPool ) {
17
18
this . time = new Date ( ) ;
18
19
this . address = pool . address ;
@@ -28,6 +29,7 @@ export class ConnectionPoolCreatedEvent extends ConnectionPoolMonitoringEvent {
28
29
/** The options used to create this connection pool */
29
30
options ?: ConnectionPoolOptions ;
30
31
32
+ /** @internal */
31
33
constructor ( pool : ConnectionPool ) {
32
34
super ( pool ) ;
33
35
this . options = pool . options ;
@@ -40,6 +42,7 @@ export class ConnectionPoolCreatedEvent extends ConnectionPoolMonitoringEvent {
40
42
* @category Event
41
43
*/
42
44
export class ConnectionPoolClosedEvent extends ConnectionPoolMonitoringEvent {
45
+ /** @internal */
43
46
constructor ( pool : ConnectionPool ) {
44
47
super ( pool ) ;
45
48
}
@@ -54,6 +57,7 @@ export class ConnectionCreatedEvent extends ConnectionPoolMonitoringEvent {
54
57
/** A monotonically increasing, per-pool id for the newly created connection */
55
58
connectionId : number | '<monitor>' ;
56
59
60
+ /** @internal */
57
61
constructor ( pool : ConnectionPool , connection : Connection ) {
58
62
super ( pool ) ;
59
63
this . connectionId = connection . id ;
@@ -69,6 +73,7 @@ export class ConnectionReadyEvent extends ConnectionPoolMonitoringEvent {
69
73
/** The id of the connection */
70
74
connectionId : number | '<monitor>' ;
71
75
76
+ /** @internal */
72
77
constructor ( pool : ConnectionPool , connection : Connection ) {
73
78
super ( pool ) ;
74
79
this . connectionId = connection . id ;
@@ -86,6 +91,7 @@ export class ConnectionClosedEvent extends ConnectionPoolMonitoringEvent {
86
91
/** The reason the connection was closed */
87
92
reason : string ;
88
93
94
+ /** @internal */
89
95
constructor ( pool : ConnectionPool , connection : Connection , reason : string ) {
90
96
super ( pool ) ;
91
97
this . connectionId = connection . id ;
@@ -99,6 +105,7 @@ export class ConnectionClosedEvent extends ConnectionPoolMonitoringEvent {
99
105
* @category Event
100
106
*/
101
107
export class ConnectionCheckOutStartedEvent extends ConnectionPoolMonitoringEvent {
108
+ /** @internal */
102
109
constructor ( pool : ConnectionPool ) {
103
110
super ( pool ) ;
104
111
}
@@ -113,6 +120,7 @@ export class ConnectionCheckOutFailedEvent extends ConnectionPoolMonitoringEvent
113
120
/** The reason the attempt to check out failed */
114
121
reason : AnyError | string ;
115
122
123
+ /** @internal */
116
124
constructor ( pool : ConnectionPool , reason : AnyError | string ) {
117
125
super ( pool ) ;
118
126
this . reason = reason ;
@@ -128,6 +136,7 @@ export class ConnectionCheckedOutEvent extends ConnectionPoolMonitoringEvent {
128
136
/** The id of the connection */
129
137
connectionId : number | '<monitor>' ;
130
138
139
+ /** @internal */
131
140
constructor ( pool : ConnectionPool , connection : Connection ) {
132
141
super ( pool ) ;
133
142
this . connectionId = connection . id ;
@@ -143,6 +152,7 @@ export class ConnectionCheckedInEvent extends ConnectionPoolMonitoringEvent {
143
152
/** The id of the connection */
144
153
connectionId : number | '<monitor>' ;
145
154
155
+ /** @internal */
146
156
constructor ( pool : ConnectionPool , connection : Connection ) {
147
157
super ( pool ) ;
148
158
this . connectionId = connection . id ;
@@ -155,6 +165,7 @@ export class ConnectionCheckedInEvent extends ConnectionPoolMonitoringEvent {
155
165
* @category Event
156
166
*/
157
167
export class ConnectionPoolClearedEvent extends ConnectionPoolMonitoringEvent {
168
+ /** @internal */
158
169
constructor ( pool : ConnectionPool ) {
159
170
super ( pool ) ;
160
171
}
0 commit comments