Added some new connection properties to the ConnectSettingsManager

This commit is contained in:
mathias 2021-09-02 14:41:40 +02:00
parent f51b938893
commit 58f49a7c69
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A

View File

@ -95,6 +95,28 @@ public class ConnectSettingsManager {
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
*
@ -139,6 +161,17 @@ public class ConnectSettingsManager {
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
*
@ -183,6 +216,17 @@ public class ConnectSettingsManager {
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
*