Added some new connection properties to the ConnectSettingsManager
This commit is contained in:
parent
f51b938893
commit
58f49a7c69
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user