From 1fbc9df5d0c44ae72c76dacc3c945d4f0d641ee6 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Tue, 22 Dec 2009 05:55:54 +0000
Subject: [PATCH] Initial implementation of fail over connection factory

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

diff --git a/sdk/src/org/opends/sdk/AsynchronousConnection.java b/sdk/src/org/opends/sdk/AsynchronousConnection.java
index 00d2ba0..ecbc74d 100644
--- a/sdk/src/org/opends/sdk/AsynchronousConnection.java
+++ b/sdk/src/org/opends/sdk/AsynchronousConnection.java
@@ -31,6 +31,7 @@
 
 import java.io.Closeable;
 import java.util.Collection;
+import java.util.concurrent.TimeUnit;
 
 import org.opends.sdk.requests.*;
 import org.opends.sdk.responses.BindResult;
@@ -377,6 +378,21 @@
 
 
   /**
+   * Returns true if the connection has not been closed and is still valid.
+   * The implementation shall submit a search on the connection or use some
+   * other mechanism that positively verifies the connection is still valid
+   * when this method is called.
+   *
+   * The query submitted by the driver to validate the connection shall be
+   * executed in the authentication context.
+   *
+   * @return {@code true} if the connection is valid, {@code false} otherwise.
+   */
+  boolean isValid();
+
+
+  
+  /**
    * Modifies an entry in the Directory Server using the provided modify
    * request.
    *

--
Gitblit v1.10.0