Package org.ldaptive.concurrent
Class SearchOperationWorker
- java.lang.Object
-
- org.ldaptive.concurrent.AbstractOperationWorker<SearchOperation,SearchRequest,SearchResponse>
-
- org.ldaptive.concurrent.SearchOperationWorker
-
- All Implemented Interfaces:
OperationWorker<SearchRequest,SearchResponse>
public class SearchOperationWorker extends AbstractOperationWorker<SearchOperation,SearchRequest,SearchResponse>
Executes multiple ldap search operations asynchronously.
-
-
Field Summary
-
Fields inherited from class org.ldaptive.concurrent.AbstractOperationWorker
logger
-
-
Constructor Summary
Constructors Constructor Description SearchOperationWorker()
Default constructor.SearchOperationWorker(SearchOperation op)
Creates a new search operation worker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<SearchResponse>
execute(String... filters)
Performs search operations for the supplied filters.Collection<SearchResponse>
execute(String[] filters, String... attrs)
Performs search operations for the supplied filters with the supplied return attributesCollection<SearchResponse>
execute(FilterTemplate... templates)
Performs search operations for the supplied filters.Collection<SearchResponse>
execute(FilterTemplate[] templates, String... attrs)
Performs search operations for the supplied filters with the supplied return attributes-
Methods inherited from class org.ldaptive.concurrent.AbstractOperationWorker
execute, getOperation, send, setOperation, toString
-
-
-
-
Constructor Detail
-
SearchOperationWorker
public SearchOperationWorker()
Default constructor.
-
SearchOperationWorker
public SearchOperationWorker(SearchOperation op)
Creates a new search operation worker.- Parameters:
op
- search operation to execute
-
-
Method Detail
-
execute
public Collection<SearchResponse> execute(String... filters)
Performs search operations for the supplied filters.- Parameters:
filters
- to search with- Returns:
- search results
-
execute
public Collection<SearchResponse> execute(FilterTemplate... templates)
Performs search operations for the supplied filters.- Parameters:
templates
- to search with- Returns:
- search results
-
execute
public Collection<SearchResponse> execute(String[] filters, String... attrs)
Performs search operations for the supplied filters with the supplied return attributes- Parameters:
filters
- to search withattrs
- attributes to return- Returns:
- search results
-
execute
public Collection<SearchResponse> execute(FilterTemplate[] templates, String... attrs)
Performs search operations for the supplied filters with the supplied return attributes- Parameters:
templates
- to search withattrs
- attributes to return- Returns:
- search results
-
-