From 20df27fbd253139d3e5a24dd6e8063ed11dd1fab Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 04 Dec 2009 11:12:28 +0000
Subject: [PATCH] Merge Bo's most recent changes.

---
 sdk/src/org/opends/sdk/AsynchronousConnection.java |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/sdk/src/org/opends/sdk/AsynchronousConnection.java b/sdk/src/org/opends/sdk/AsynchronousConnection.java
index ac0837c..89c3c06 100644
--- a/sdk/src/org/opends/sdk/AsynchronousConnection.java
+++ b/sdk/src/org/opends/sdk/AsynchronousConnection.java
@@ -32,8 +32,9 @@
 import java.io.Closeable;
 
 import org.opends.sdk.requests.*;
-import org.opends.sdk.responses.*;
-
+import org.opends.sdk.responses.BindResult;
+import org.opends.sdk.responses.CompareResult;
+import org.opends.sdk.responses.Result;
 
 
 /**
@@ -260,12 +261,12 @@
    * @param request
    *          The unbind request to use in the case where a physical
    *          connection is closed.
+   * @param reason
+   *          A reason describing why the connection was closed.
    * @throws NullPointerException
    *           If {@code request} was {@code null}.
    */
-  void close(UnbindRequest request) throws NullPointerException;
-
-
+  void close(UnbindRequest request, String reason);
 
   /**
    * Compares an entry in the Directory Server using the provided
@@ -492,4 +493,14 @@
    */
   void removeConnectionEventListener(ConnectionEventListener listener)
       throws NullPointerException;
+
+
+  /**
+   * Returns <code>true</code> if the connection is closed for
+   * <code>false</code> otherwise.
+   *
+   * @return <code>true</code> if the connection is closed for
+   *         <code>false</code> otherwise.
+   */
+  boolean isClosed();
 }

--
Gitblit v1.10.0