public class SearchFuture extends ResponseFuture<Response>
cancelled, cause, connection, messageId, queue
Constructor and Description |
---|
SearchFuture(LdapConnection connection,
int messageId)
Creates a new instance of SearchFuture.
|
Modifier and Type | Method and Description |
---|---|
Response |
get(long timeout,
TimeUnit unit)
Get the SearchResponse, blocking until one is received, or until the
given timeout is reached.
|
String |
toString() |
cancel, cancel, get, getCause, isCancelled, isDone, set, setCause
public SearchFuture(LdapConnection connection, int messageId)
connection
- the LDAP connectionmessageId
- The associated messageIdpublic Response get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<Response>
get
in class ResponseFuture<Response>
timeout
- unit
- InterruptedException
- if the operation has been cancelled by clientExecutionException
TimeoutException
public String toString()
toString
in class ResponseFuture<Response>
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.