table meta support

This commit is contained in:
kaimingwan
2017-09-22 22:01:57 +08:00
committed by wanshao
parent 2cebfa04dd
commit e8da1c884b
55 changed files with 2931 additions and 234 deletions

View File

@@ -35,6 +35,7 @@ public class MysqlConnector {
private byte charsetNumber = 33;
private String defaultSchema = "retl";
private int soTimeout = 30 * 1000;
private int connTimeout = 5 * 1000;
private int receiveBufferSize = 16 * 1024;
private int sendBufferSize = 16 * 1024;
@@ -129,6 +130,7 @@ public class MysqlConnector {
connector.setReceiveBufferSize(getReceiveBufferSize());
connector.setSendBufferSize(getSendBufferSize());
connector.setSoTimeout(getSoTimeout());
connector.setConnTimeout(connTimeout);
return connector;
}
@@ -325,4 +327,11 @@ public class MysqlConnector {
this.dumping = dumping;
}
public int getConnTimeout() {
return connTimeout;
}
public void setConnTimeout(int connTimeout) {
this.connTimeout = connTimeout;
}
}