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