-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPoolStatus.java
More file actions
73 lines (60 loc) · 1.38 KB
/
PoolStatus.java
File metadata and controls
73 lines (60 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package io.ebean.datasource;
/**
* Current status of the DataSourcePool.
*/
public interface PoolStatus {
/**
* Return the pools minimum size.
*/
int minSize();
/**
* Return the pools maximum size.
*/
int maxSize();
/**
* Return number of free connections.
*/
int free();
/**
* Return number of busy connections.
*/
int busy();
/**
* Return the number of threads waiting for connections.
*/
int waiting();
/**
* Return the busy connection highwater mark.
*/
int highWaterMark();
/**
* Return the number of times threads had to wait for connections.
* <p>
* This occurs when the pool is full and threads are waiting for a connection.
*/
int waitCount();
/**
* Return the hit count against the pool.
*/
int hitCount();
/**
* Return the total time acquiring a connection from the pool.
*/
long totalAcquireMicros();
/**
* Return the total time waiting in micros for a free connection when the pool has hit maxConnections.
* <p>
* When the pool is full and threads are waiting for a connection, this is the total time spent waiting.
*/
long totalWaitMicros();
/**
* Return the max acquire time in micros.
*/
long maxAcquireMicros();
/**
* Return the mean acquire time in nanos.
* <p>
* This should be in the ballpark of 150 nanos.
*/
long meanAcquireNanos();
}