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