org.apache.directory.ldap.client.api.future
Class CompareFuture
java.lang.Object
org.apache.directory.ldap.client.api.future.ResponseFuture<CompareResponse>
org.apache.directory.ldap.client.api.future.CompareFuture
- All Implemented Interfaces:
- Future<Response>
public class CompareFuture
- extends ResponseFuture<CompareResponse>
A Future to manage CompareRequest.
- Author:
- Apache Directory Project
CompareFuture
public CompareFuture(LdapConnection connection,
int messageId)
- Creates a new instance of CompareFuture.
- Parameters:
connection - the LDAP connectionmessageId - the associated messageId
get
public CompareResponse get()
throws InterruptedException,
ExecutionException
- Get the CompareResponse, blocking until one is received.
- Specified by:
get in interface Future<Response>- Overrides:
get in class ResponseFuture<CompareResponse>
- Returns:
- the compare response
- Throws:
InterruptedException - if the operation has been cancelled by client
ExecutionException
get
public CompareResponse get(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
- Get the CompareResponse, blocking until one is received, or until the
given timeout is reached.
- Specified by:
get in interface Future<Response>- Overrides:
get in class ResponseFuture<CompareResponse>
- Parameters:
timeout - unit -
- Returns:
- the compare response
- Throws:
InterruptedException - if the operation has been cancelled by client
ExecutionException
TimeoutException
toString
public String toString()
-
- Overrides:
toString in class ResponseFuture<CompareResponse>
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.