Package netscape.ldap.util
Class ConnectionPool.LDAPConnectionObject
java.lang.Object
netscape.ldap.util.ConnectionPool.LDAPConnectionObject
- Enclosing class:
- ConnectionPool
Wrapper for LDAPConnection object in pool
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) LDAPConnection
Returns the associated LDAPConnection.(package private) boolean
Returns whether the connection is available for use by another user.(package private) void
setInUse
(boolean inUse) Marks a connection in use or available(package private) void
Sets the associated LDAPConnectiontoString()
Debug method
-
Field Details
-
ld
-
inUse
private boolean inUse
-
-
Constructor Details
-
LDAPConnectionObject
LDAPConnectionObject()
-
-
Method Details
-
getLDAPConn
LDAPConnection getLDAPConn()Returns the associated LDAPConnection.- Returns:
- the LDAPConnection.
-
setLDAPConn
Sets the associated LDAPConnection- Parameters:
ld
- the LDAPConnection
-
setInUse
void setInUse(boolean inUse) Marks a connection in use or available- Parameters:
inUse
-true
to mark in use,false
if available
-
isAvailable
boolean isAvailable()Returns whether the connection is available for use by another user.- Returns:
true
if available.
-
toString
Debug method
-