public class DefaultConnectionConfig extends Object implements ConnectionConfig
| Constructor and Description |
|---|
DefaultConnectionConfig() |
DefaultConnectionConfig(boolean anonymousLoginEnabled,
int loginFailureDelay,
int maxLogins,
int maxAnonymousLogins,
int maxLoginFailures,
int maxThreads)
Internal constructor, do not use directly.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLoginFailureDelay()
The delay in number of milliseconds between login failures.
|
int |
getMaxAnonymousLogins()
The maximum number of time an anonymous user can fail to login before getting disconnected
|
int |
getMaxLoginFailures()
The maximum number of time an user can fail to login before getting disconnected
|
int |
getMaxLogins()
The maximum number of concurrently logged in users
|
int |
getMaxThreads()
Returns the maximum number of threads the server is allowed to create for
processing client requests.
|
boolean |
isAnonymousLoginEnabled()
Is anonymous logins allowed at the server?
|
public DefaultConnectionConfig()
public DefaultConnectionConfig(boolean anonymousLoginEnabled,
int loginFailureDelay,
int maxLogins,
int maxAnonymousLogins,
int maxLoginFailures,
int maxThreads)
ConnectionConfigFactory insteadpublic int getLoginFailureDelay()
ConnectionConfiggetLoginFailureDelay in interface ConnectionConfigpublic int getMaxAnonymousLogins()
ConnectionConfiggetMaxAnonymousLogins in interface ConnectionConfigpublic int getMaxLoginFailures()
ConnectionConfiggetMaxLoginFailures in interface ConnectionConfigpublic int getMaxLogins()
ConnectionConfiggetMaxLogins in interface ConnectionConfigpublic boolean isAnonymousLoginEnabled()
ConnectionConfigisAnonymousLoginEnabled in interface ConnectionConfigpublic int getMaxThreads()
ConnectionConfiggetMaxThreads in interface ConnectionConfigCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.