netscape.ldap.util
Class ConnectionPool.LDAPConnectionObject

java.lang.Object
  extended bynetscape.ldap.util.ConnectionPool.LDAPConnectionObject
Enclosing class:
ConnectionPool

class ConnectionPool.LDAPConnectionObject
extends java.lang.Object

Wrapper for LDAPConnection object in pool


Constructor Summary
(package private) ConnectionPool.LDAPConnectionObject()
           
 
Method Summary
(package private)  LDAPConnection getLDAPConn()
          Returns the associated LDAPConnection.
(package private)  boolean isAvailable()
          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 setLDAPConn(LDAPConnection ld)
          Sets the associated LDAPConnection
 java.lang.String toString()
          Debug method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionPool.LDAPConnectionObject

ConnectionPool.LDAPConnectionObject()
Method Detail

getLDAPConn

LDAPConnection getLDAPConn()
Returns the associated LDAPConnection.

Returns:
the LDAPConnection.

setLDAPConn

void setLDAPConn(LDAPConnection ld)
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

public java.lang.String toString()
Debug method

Returns:
s user-friendly rendering of the object.