From 710d8dc12afc3befff667f2e8096ad187dc79443 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 02 Dec 2011 10:06:04 +0000
Subject: [PATCH] Fix OPENDJ-374: Remove BlockingQueue parameter from Connection.search(SearchRequest, BlockingQueue)
---
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Connection.java | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Connection.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Connection.java
index 697f44a..e352069 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Connection.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Connection.java
@@ -32,7 +32,6 @@
import java.io.Closeable;
import java.util.Collection;
-import java.util.concurrent.BlockingQueue;
import org.forgerock.i18n.LocalizedIllegalArgumentException;
import org.forgerock.opendj.ldap.requests.*;
@@ -1125,16 +1124,15 @@
/**
* Searches the Directory Server using the provided search parameters. Any
* matching entries returned by the search will be exposed through the
- * {@code EntryReader} interface.
+ * returned {@code ConnectionEntryReader}.
* <p>
- * <b>Warning:</b> When using a queue with an optional capacity bound, the
- * connection will stop reading responses and wait if necessary for space to
- * become available.
+ * Unless otherwise specified, calling this method is equivalent to:
+ * <pre>
+ * ConnectionEntryReader reader = new ConnectionEntryReader(this, request);
+ * </pre>
*
* @param request
* The search request.
- * @param entries
- * The queue to which matching entries should be added.
* @return The result of the operation.
* @throws UnsupportedOperationException
* If this connection does not support search operations.
@@ -1144,9 +1142,9 @@
* @throws NullPointerException
* If {@code request} or {@code entries} was {@code null}.
*/
- ConnectionEntryReader search(SearchRequest request,
- BlockingQueue<Response> entries) throws UnsupportedOperationException,
- IllegalStateException, NullPointerException;
+ ConnectionEntryReader search(SearchRequest request)
+ throws UnsupportedOperationException, IllegalStateException,
+ NullPointerException;
--
Gitblit v1.10.0