mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUAC-1512: Refer to defaults as defaults.
This commit is contained in:
@@ -55,7 +55,7 @@ public class MySQLEnvironment extends JDBCEnvironment {
|
|||||||
* The default value for the maximum number of connections to be
|
* The default value for the maximum number of connections to be
|
||||||
* allowed to the Guacamole server overall.
|
* allowed to the Guacamole server overall.
|
||||||
*/
|
*/
|
||||||
private final int ABSOLUTE_MAX_CONNECTIONS = 0;
|
private final int DEFAULT_ABSOLUTE_MAX_CONNECTIONS = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default value for the default maximum number of connections to be
|
* The default value for the default maximum number of connections to be
|
||||||
@@ -173,7 +173,7 @@ public class MySQLEnvironment extends JDBCEnvironment {
|
|||||||
@Override
|
@Override
|
||||||
public int getAbsoluteMaxConnections() throws GuacamoleException {
|
public int getAbsoluteMaxConnections() throws GuacamoleException {
|
||||||
return getProperty(MySQLGuacamoleProperties.MYSQL_ABSOLUTE_MAX_CONNECTIONS,
|
return getProperty(MySQLGuacamoleProperties.MYSQL_ABSOLUTE_MAX_CONNECTIONS,
|
||||||
ABSOLUTE_MAX_CONNECTIONS
|
DEFAULT_ABSOLUTE_MAX_CONNECTIONS
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -54,7 +54,7 @@ public class PostgreSQLEnvironment extends JDBCEnvironment {
|
|||||||
* The default value for the maximum number of connections to be
|
* The default value for the maximum number of connections to be
|
||||||
* allowed to the Guacamole server overall.
|
* allowed to the Guacamole server overall.
|
||||||
*/
|
*/
|
||||||
private final int ABSOLUTE_MAX_CONNECTIONS = 0;
|
private final int DEFAULT_ABSOLUTE_MAX_CONNECTIONS = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default value for the default maximum number of connections to be
|
* The default value for the default maximum number of connections to be
|
||||||
@@ -172,7 +172,7 @@ public class PostgreSQLEnvironment extends JDBCEnvironment {
|
|||||||
@Override
|
@Override
|
||||||
public int getAbsoluteMaxConnections() throws GuacamoleException {
|
public int getAbsoluteMaxConnections() throws GuacamoleException {
|
||||||
return getProperty(PostgreSQLGuacamoleProperties.POSTGRESQL_ABSOLUTE_MAX_CONNECTIONS,
|
return getProperty(PostgreSQLGuacamoleProperties.POSTGRESQL_ABSOLUTE_MAX_CONNECTIONS,
|
||||||
ABSOLUTE_MAX_CONNECTIONS
|
DEFAULT_ABSOLUTE_MAX_CONNECTIONS
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user