Class ExtendedFuture
java.lang.Object
org.apache.directory.ldap.client.api.future.MultipleResponseFuture<org.apache.directory.api.ldap.model.message.Response>
org.apache.directory.ldap.client.api.future.ExtendedFuture
- All Implemented Interfaces:
Future<org.apache.directory.api.ldap.model.message.Response>, ResponseFuture<org.apache.directory.api.ldap.model.message.Response>
public class ExtendedFuture
extends MultipleResponseFuture<org.apache.directory.api.ldap.model.message.Response>
A Future to manage ExtendedRequests.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class MultipleResponseFuture
cancelled, cause, connection, messageId, queue -
Constructor Summary
ConstructorsConstructorDescriptionExtendedFuture(LdapConnection connection, int messageId) Creates a new instance of ExtendedFuture. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.directory.api.ldap.model.message.ExtendedRequestGet the extended request instancevoidset(org.apache.directory.api.ldap.model.message.ExtendedResponse response) Set the associated Response in this FuturevoidsetExtendedRequest(org.apache.directory.api.ldap.model.message.ExtendedRequest extendedRequest) Set the ExtendedRequesttoString()Methods inherited from class MultipleResponseFuture
cancel, cancel, get, get, getCause, isCancelled, isDone, set, setCause
-
Constructor Details
-
ExtendedFuture
Creates a new instance of ExtendedFuture.- Parameters:
connection- the LDAP connectionmessageId- The associated messageId
-
-
Method Details
-
getExtendedRequest
public org.apache.directory.api.ldap.model.message.ExtendedRequest getExtendedRequest()Get the extended request instance- Returns:
- the extendedRequest
-
setExtendedRequest
public void setExtendedRequest(org.apache.directory.api.ldap.model.message.ExtendedRequest extendedRequest) Set the ExtendedRequest- Parameters:
extendedRequest- the extendedRequest to set
-
set
public void set(org.apache.directory.api.ldap.model.message.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
- Overrides:
toStringin classMultipleResponseFuture<org.apache.directory.api.ldap.model.message.Response>
-