Skip to content

Commit 2c1081d

Browse files
committed
#58 - Rename methods with deprecation: getName() -> name(), getStatus() -> status() etc
1 parent 868a34d commit 2c1081d

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

ebean-datasource-api/src/main/java/io/ebean/datasource/DataSourcePool.java

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,15 @@ default String getName() {
5959
* Shutdown the pool.
6060
* <p>
6161
* This is functionally the same as {@link #offline()} but generally we expect to only
62-
* shutdown the pool once whereas we can expect to make many calls to offline() and
62+
* shut down the pool once whereas we can expect to make many calls to offline() and
6363
* online().
6464
*/
6565
void shutdown();
6666

6767
/**
6868
* Return the current status of the connection pool.
6969
* <p>
70-
* This is cheaper than getStatistics() in that it just the counts of free, busy,
71-
* wait etc and does not included times (total connection time etc).
72-
* <p>
73-
* If you pass reset = true then the counters are reset.
70+
* With reset true, the counters are reset.
7471
*/
7572
PoolStatus status(boolean reset);
7673

@@ -96,23 +93,29 @@ default SQLException getDataSourceDownReason() {
9693
}
9794

9895
/**
99-
* Set a new maximum size. The pool should respect this new maximum
100-
* immediately and not require a restart. We may want to increase the
101-
* maxConnections if the pool gets large and hits the warning level.
96+
* Set a new maximum size.
97+
* <p>
98+
* The pool will apply the new maximum and not require a restart.
10299
*/
103100
void setMaxSize(int max);
104101

105102
/**
103+
* Deprecated - looking to remove.
104+
* <p>
106105
* Set a new maximum size. The pool should respect this new warning level immediately
107106
* and not require a restart. We may want to increase the maxConnections if the
108107
* pool gets large and hits the warning levels.
109108
*/
109+
@Deprecated
110110
void setWarningSize(int warningSize);
111111

112112
/**
113+
* Deprecated - looking to remove.
114+
* <p>
113115
* Return the warning size. When the pool hits this size it can send a
114116
* warning message to an administrator.
115117
*/
118+
@Deprecated
116119
int getWarningSize();
117120

118121
}

0 commit comments

Comments
 (0)