mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

boli
24.50.2006 bf7b61bf7e22fc0c1c0bf69255f44d0139c86937
opends/src/server/org/opends/server/api/ClientConnection.java
@@ -80,6 +80,9 @@
  // The time limit for use with this client connection.
  private int timeLimit;
  // The lookthrough limit for use with this client connection.
  private int lookthroughLimit;
  // The opaque information used for storing intermediate state
  // information needed across multi-stage SASL binds.
  private Object saslAuthState;
@@ -103,6 +106,7 @@
    persistentSearches = new CopyOnWriteArrayList<PersistentSearch>();
    sizeLimit          = DirectoryServer.getSizeLimit();
    timeLimit          = DirectoryServer.getTimeLimit();
    lookthroughLimit   = DirectoryServer.getLookthroughLimit();
  }
@@ -776,6 +780,40 @@
  /**
   * Retrieves the default maximum number of entries that should
   * checked for matches during a search.
   *
   * @return  The default maximum number of entries that should
   *          checked for matches during a search.
   */
  public final int getLookthroughLimit()
  {
    assert debugEnter(CLASS_NAME, "getLookthroughLimit");
    return lookthroughLimit;
  }
  /**
   * Specifies the default maximum number of entries that should
   * be checked for matches during a search.
   *
   * @param  lookthroughLimit  The default maximum number of
   *                           entries that should be check for
   *                           matches during a search.
   */
  public final void setLookthroughLimit(int lookthroughLimit)
  {
    assert debugEnter(CLASS_NAME, "setLookthroughLimit",
      String.valueOf(lookthroughLimit));
    this.lookthroughLimit = lookthroughLimit;
  }
  /**
   * Retrieves the time limit that will be enforced for searches
   * performed using this client connection.
   *