public class MaxLifetimeLdapConnectionLivenessValidator extends Object implements LdapConnectionLivenessValidator
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_MAX_TTL |
| Constructor and Description |
|---|
MaxLifetimeLdapConnectionLivenessValidator() |
| Modifier and Type | Method and Description |
|---|---|
long |
getMaxTtl()
Get the max connection lifetime, in millis.
|
boolean |
isConnectionAlive(com.novell.ldap.LDAPConnection connectionToTest)
Tests if the allowable lifetime of the given connection has already
elapsed.
|
void |
setMaxTtl(long maxTtl)
Assign the max connection lifetime, in millis.
|
public static final long DEFAULT_MAX_TTL
public MaxLifetimeLdapConnectionLivenessValidator()
public boolean isConnectionAlive(com.novell.ldap.LDAPConnection connectionToTest)
PooledLDAPConnection - returns truemaxTtl <= 0 - returns truetrueisConnectionAlive in interface LdapConnectionLivenessValidatorpublic long getMaxTtl()
public void setMaxTtl(long maxTtl)
maxTtl - Copyright © 2003–2022 Sakai Project. All rights reserved.