Interface ConnectionCallback<T>

Type Parameters:
T - The callback type

public interface ConnectionCallback<T>
A callback for running code against a managed LdapConnection.
Author:
Apache Directory Project
  • Method Summary

    Modifier and Type
    Method
    Description
    Provides a managed connection to the implementation of this method.
  • Method Details

    • doWithConnection

      T doWithConnection(LdapConnection connection) throws org.apache.directory.api.ldap.model.exception.LdapException
      Provides a managed connection to the implementation of this method. The implementation is not responsible for open/close or borrow/return.
      Parameters:
      connection - The connection supplied to the implementation.
      Returns:
      Anything you want
      Throws:
      org.apache.directory.api.ldap.model.exception.LdapException - If you want to