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