Class ExtendedFuture
- java.lang.Object
-
- org.apache.directory.ldap.client.api.future.MultipleResponseFuture<Response>
-
- org.apache.directory.ldap.client.api.future.ExtendedFuture
-
- All Implemented Interfaces:
Future<Response>,ResponseFuture<Response>
public class ExtendedFuture extends MultipleResponseFuture<Response>
A Future to manage ExtendedRequests.- Author:
- Apache Directory Project
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ExtendedRequestextendedRequestThe extendedRequest : we need it to find which request is associated with a response, when this response has no name-
Fields inherited from class org.apache.directory.ldap.client.api.future.MultipleResponseFuture
cancelled, cause, connection, messageId, queue
-
-
Constructor Summary
Constructors Constructor Description ExtendedFuture(LdapConnection connection, int messageId)Creates a new instance of ExtendedFuture.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtendedRequestgetExtendedRequest()voidset(ExtendedResponse response)Set the associated Response in this FuturevoidsetExtendedRequest(ExtendedRequest extendedRequest)StringtoString()-
Methods inherited from class org.apache.directory.ldap.client.api.future.MultipleResponseFuture
cancel, cancel, get, get, getCause, isCancelled, isDone, set, setCause
-
-
-
-
Field Detail
-
extendedRequest
ExtendedRequest extendedRequest
The extendedRequest : we need it to find which request is associated with a response, when this response has no name
-
-
Constructor Detail
-
ExtendedFuture
public ExtendedFuture(LdapConnection connection, int messageId)
Creates a new instance of ExtendedFuture.- Parameters:
connection- the LDAP connectionmessageId- The associated messageId
-
-
Method Detail
-
getExtendedRequest
public ExtendedRequest getExtendedRequest()
- Returns:
- the extendedRequest
-
setExtendedRequest
public void setExtendedRequest(ExtendedRequest extendedRequest)
- Parameters:
extendedRequest- the extendedRequest to set
-
set
public void set(ExtendedResponse response) throws InterruptedException
Set the associated Response in this Future- Parameters:
response- The response to add into the Future- Throws:
InterruptedException- if the operation has been cancelled by client
-
toString
public String toString()
- Overrides:
toStringin classMultipleResponseFuture<Response>
-
-