public class CompareFuture extends ResponseFuture<CompareResponse>
cancelled, connection, messageId, queue| Constructor and Description |
|---|
CompareFuture(LdapConnection connection,
int messageId)
Creates a new instance of CompareFuture.
|
| Modifier and Type | Method and Description |
|---|---|
CompareResponse |
get()
Get the CompareResponse, blocking until one is received.
|
CompareResponse |
get(long timeout,
TimeUnit unit)
Get the CompareResponse, blocking until one is received, or until the
given timeout is reached.
|
String |
toString() |
cancel, isCancelled, isDone, setpublic CompareFuture(LdapConnection connection, int messageId)
connection - The LdapConnectionmessageId - The associated messageIdpublic CompareResponse get() throws InterruptedException, ExecutionException
get in interface Future<CompareResponse>get in class ResponseFuture<CompareResponse>InterruptedException - if the operation has been cancelled by clientExecutionExceptionpublic CompareResponse get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<CompareResponse>get in class ResponseFuture<CompareResponse>timeout - Number of TimeUnit to waitunit - The TimeUnitInterruptedException - if the operation has been cancelled by clientExecutionExceptionTimeoutExceptionpublic String toString()
toString in class ResponseFuture<CompareResponse>Copyright © 2009–2016 The Apache Software Foundation. All rights reserved.