Skip to content

Commit

Permalink
fix io.mycat.mysqlclient.VertxMycatConnectionPool
Browse files Browse the repository at this point in the history
  • Loading branch information
junwen12221 committed Jun 6, 2022
1 parent 95c99e7 commit 5cf392b
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public class VertxMycatConnectionPool implements NewMycatConnection {

private boolean close = false;

private long activeTimeStamp;

public VertxMycatConnectionPool(String targetName, VertxConnection connection, VertxPoolConnectionImpl vertxConnectionPool) {
this.targetName = targetName;
this.connection = connection;
Expand Down Expand Up @@ -289,4 +291,14 @@ public synchronized Future<Void> abandonQuery() {
public boolean isQuerying() {
return !this.queryCloseFuture.isComplete();
}

@Override
public void onActiveTimestamp(long timestamp) {
this.activeTimeStamp = timestamp;
}

@Override
public long getActiveTimeStamp() {
return this.activeTimeStamp;
}
}

0 comments on commit 5cf392b

Please sign in to comment.