|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.AbstractOperation<Q,S>
org.ldaptive.async.AbstractAsyncOperation<SearchRequest,SearchResult>
org.ldaptive.async.AsyncSearchOperation
public class AsyncSearchOperation
Executes an asynchronous ldap search operation.
| Nested Class Summary | |
|---|---|
protected class |
AsyncSearchOperation.AsyncSearchListener
Async search listener used to build a search result and invoke search request handlers. |
| Nested classes/interfaces inherited from class org.ldaptive.AbstractOperation |
|---|
AbstractOperation.ReopenOperationExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.AbstractOperation |
|---|
logger |
| Constructor Summary | |
|---|---|
AsyncSearchOperation(Connection conn)
Creates a new async search operation. |
|
| Method Summary | |
|---|---|
FutureResponse<SearchResult> |
execute(SearchRequest request)
Execute this ldap operation. |
protected void |
finalize()
|
boolean |
getUseMultiThreadedListener()
Returns whether the listener should spawn a new thread to process each result. |
protected Response<SearchResult> |
invoke(SearchRequest request)
Call the provider specific implementation of this ldap operation. |
void |
setUseMultiThreadedListener(boolean b)
Sets whether the listener should spawn a new thread to process each result. |
void |
shutdown()
Invokes ExecutorService.shutdown() on the underlying executor
service. |
| Methods inherited from class org.ldaptive.async.AbstractAsyncOperation |
|---|
getAsyncRequestHandlers, getExceptionHandler, setAsyncRequestHandlers, setExceptionHandler |
| Methods inherited from class org.ldaptive.AbstractOperation |
|---|
executeHandlers, getConnection, getOperationExceptionHandler, getOperationResponseHandlers, setOperationExceptionHandler, setOperationResponseHandlers, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncSearchOperation(Connection conn)
conn - connection| Method Detail |
|---|
public boolean getUseMultiThreadedListener()
public void setUseMultiThreadedListener(boolean b)
b - make the listener multi-threaded
public FutureResponse<SearchResult> execute(SearchRequest request)
throws LdapException
execute in interface Operation<SearchRequest,SearchResult>execute in class AbstractOperation<SearchRequest,SearchResult>request - containing the data required by this operation
LdapException - if the operation fails
protected Response<SearchResult> invoke(SearchRequest request)
throws LdapException
invoke in class AbstractOperation<SearchRequest,SearchResult>request - ldap request
LdapException - if the invocation failspublic void shutdown()
ExecutorService.shutdown() on the underlying executor
service.
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||