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