public class ConnectionConfigFactory extends Object
| Constructor and Description |
|---|
ConnectionConfigFactory() |
| Modifier and Type | Method and Description |
|---|---|
ConnectionConfig |
createConnectionConfig()
Create a connection configuration instances based on the configuration on this factory
|
int |
getLoginFailureDelay()
The delay in number of milliseconds between login failures.
|
int |
getMaxAnonymousLogins()
The maximum number of anonymous logins the server would allow at any given time
|
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?
|
void |
setAnonymousLoginEnabled(boolean anonymousLoginEnabled)
Set if anonymous logins are allowed at the server
|
void |
setLoginFailureDelay(int loginFailureDelay)
Set the delay in number of milliseconds between login failures.
|
void |
setMaxAnonymousLogins(int maxAnonymousLogins)
Sets the maximum number of anonymous logins the server would allow at any given time
|
void |
setMaxLoginFailures(int maxLoginFailures)
Set the maximum number of time an user can fail to login before getting disconnected
|
void |
setMaxLogins(int maxLogins)
Set she maximum number of concurrently logged in users
|
void |
setMaxThreads(int maxThreads)
Sets the maximum number of threads the server is allowed to create for
processing client requests.
|
public ConnectionConfig createConnectionConfig()
ConnectionConfig instancepublic int getLoginFailureDelay()
public int getMaxAnonymousLogins()
public int getMaxLoginFailures()
public int getMaxLogins()
public boolean isAnonymousLoginEnabled()
public void setMaxLogins(int maxLogins)
maxLogins - The maximum number of userspublic int getMaxThreads()
public void setMaxThreads(int maxThreads)
maxThreads - the maximum number of threads the server is allowed to create
for processing client requests.public void setAnonymousLoginEnabled(boolean anonymousLoginEnabled)
anonymousLoginEnabled - true if anonymous logins should be enabledpublic void setMaxAnonymousLogins(int maxAnonymousLogins)
maxAnonymousLogins - The maximum number of anonymous loginspublic void setMaxLoginFailures(int maxLoginFailures)
maxLoginFailures - The maximum number of failure login attemptspublic void setLoginFailureDelay(int loginFailureDelay)
loginFailureDelay - The delay time in millisecondsCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.