🛠️ Code cleanup & added many new features #1

Merged
gnmyt merged 121 commits from features/code-cleanup into master 2021-09-02 13:34:00 +00:00
Showing only changes of commit 58f49a7c69 - Show all commits

View File

@ -95,6 +95,28 @@ public class ConnectSettingsManager {
return this; return this;
} }
/**
* Sets the connectTimeout property
*
* @param connectTimeout The new value of the connectTimeout property
* @return this class
*/
public ConnectSettingsManager connectTimeout(int connectTimeout) {
settingValues.put("connectTimeout", connectTimeout);
return this;
}
/**
* Sets the socketTimeout property
*
* @param socketTimeout The new value of the socketTimeout property
* @return this class
*/
public ConnectSettingsManager socketTimeout(int socketTimeout) {
settingValues.put("socketTimeout", socketTimeout);
return this;
}
/** /**
* Sets the tcpKeepAlive property * Sets the tcpKeepAlive property
* *
@ -139,6 +161,17 @@ public class ConnectSettingsManager {
return this; return this;
} }
/**
* Sets the maxAllowedPacket property
*
* @param maxAllowedPacket The new value of the maxAllowedPacket property
* @return this class
*/
public ConnectSettingsManager maxAllowedPacket(int maxAllowedPacket) {
settingValues.put("maxAllowedPacket", maxAllowedPacket);
return this;
}
/** /**
* Sets the tcpTrafficClass property * Sets the tcpTrafficClass property
* *
@ -183,6 +216,17 @@ public class ConnectSettingsManager {
return this; return this;
} }
/**
* Sets the verifyServerCertificate property
*
* @param verifyServerCertificate The new value of the verifyServerCertificate property
* @return this class
*/
public ConnectSettingsManager verifyServerCertificate(boolean verifyServerCertificate) {
settingValues.put("verifyServerCertificate", verifyServerCertificate);
return this;
}
/** /**
* Creates the connection string * Creates the connection string
* *