mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
user clearDefines optimize Oracle PrepareStatement Cache memoery use
This commit is contained in:
@@ -26,7 +26,7 @@ public final class PreparedStatementHolder {
|
||||
|
||||
private final PreparedStatementKey key;
|
||||
private final PreparedStatement statement;
|
||||
private int useCount = 0;
|
||||
private int hitCount = 0;
|
||||
|
||||
public PreparedStatementHolder(PreparedStatementKey key, PreparedStatement stmt){
|
||||
this.key = key;
|
||||
@@ -41,12 +41,12 @@ public final class PreparedStatementHolder {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void incrementReusedCount() {
|
||||
useCount++;
|
||||
public void incrementHitCount() {
|
||||
hitCount++;
|
||||
}
|
||||
|
||||
public int getReusedCount() {
|
||||
return useCount;
|
||||
public int getHitCount() {
|
||||
return hitCount;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user