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
  • Constructor Details

    • ExtendedFuture

      public ExtendedFuture(LdapConnection connection, int messageId)
      Creates a new instance of ExtendedFuture.
      Parameters:
      connection - the LDAP connection
      messageId - 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

      public String toString()
      Overrides:
      toString in class MultipleResponseFuture<org.apache.directory.api.ldap.model.message.Response>