|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.async.AsyncSearchOperation.AsyncSearchListener
protected class AsyncSearchOperation.AsyncSearchListener
Async search listener used to build a search result and invoke search request handlers.
| Constructor Summary | |
|---|---|
AsyncSearchOperation.AsyncSearchListener(SearchRequest request)
Creates a new async search listener. |
|
| Method Summary | |
|---|---|
void |
asyncRequestReceived(AsyncRequest request)
Invoked when an asynchronous operation has begun. |
void |
exceptionReceived(Exception exception)
Invoked when an exception is thrown from a provider indicating the operation cannot be completed. |
Response<SearchResult> |
getResponse()
Returns the response data associated with this search, blocking until a response is available. |
protected void |
processAsyncRequest(AsyncRequest request)
Invokes the handlers for the supplied async request. |
protected void |
processSearchItem(SearchItem item)
Invokes the handlers for the supplied search item. |
void |
responseReceived(Response<Void> response)
Invoked when a response is received from a provider indicating the operation has completed. |
void |
searchItemReceived(SearchItem item)
Invoked when a search item is received from a provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncSearchOperation.AsyncSearchListener(SearchRequest request)
request - ldap search request| Method Detail |
|---|
public void asyncRequestReceived(AsyncRequest request)
asyncRequestReceived in interface ResponseListenerrequest - to abandon this operationpublic void searchItemReceived(SearchItem item)
searchItemReceived in interface SearchListeneritem - containing a search result entry, reference, or intermediate
responsepublic void responseReceived(Response<Void> response)
responseReceived in interface ResponseListenerresponse - containing the result
public Response<SearchResult> getResponse()
throws InterruptedException,
LdapException
InterruptedException - if this thread is interrupted before a
response is received
LdapException - if the async search encountered an errorpublic void exceptionReceived(Exception exception)
exceptionReceived in interface ResponseListenerexception - thrown from the async operation
protected void processAsyncRequest(AsyncRequest request)
throws LdapException
responseReceived(Response) if a handler aborts the operation.
request - to handle
LdapException - if a handler throws
protected void processSearchItem(SearchItem item)
throws LdapException
responseReceived(Response) if a handler aborts the operation.
item - to handle
LdapException - if a handler throws
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||