From 9e2b4f600d6887b79b1c7f8657d60b7ba7b6d479 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Tue, 08 Dec 2009 11:41:02 +0000
Subject: [PATCH] Add Connection.isClosed, improve AsynchronousConnection.isClosed Javadoc, add comments to ConnectionPool and move it to top-level package with other connection factory decorators.

---
 sdk/src/org/opends/sdk/AsynchronousConnection.java |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/sdk/src/org/opends/sdk/AsynchronousConnection.java b/sdk/src/org/opends/sdk/AsynchronousConnection.java
index 89c3c06..b0d8041 100644
--- a/sdk/src/org/opends/sdk/AsynchronousConnection.java
+++ b/sdk/src/org/opends/sdk/AsynchronousConnection.java
@@ -37,6 +37,7 @@
 import org.opends.sdk.responses.Result;
 
 
+
 /**
  * An asynchronous connection with a Directory Server over which read
  * and update operations may be performed. See RFC 4511 for the LDAPv3
@@ -268,6 +269,8 @@
    */
   void close(UnbindRequest request, String reason);
 
+
+
   /**
    * Compares an entry in the Directory Server using the provided
    * compare request.
@@ -495,12 +498,15 @@
       throws NullPointerException;
 
 
+
   /**
-   * Returns <code>true</code> if the connection is closed for
-   * <code>false</code> otherwise.
+   * Indicates whether or not this connection has been explicitly closed
+   * by calling {@code close}. This method will not return {@code true}
+   * if a fatal error has occurred on the connection unless {@code
+   * close} has been called.
    *
-   * @return <code>true</code> if the connection is closed for
-   *         <code>false</code> otherwise.
+   * @return {@code true} if this connection has been explicitly closed
+   *         by calling {@code close}, or {@code false} otherwise.
    */
   boolean isClosed();
 }

--
Gitblit v1.10.0