Code example for SearchControls

Methods: setTimeLimit

0
     * The time to wait before the search fails; the default is zero, meaning forever. 
     * 
     * @param searchTimeLimit the time limit for the search (in milliseconds). 
     */ 
    public void setSearchTimeLimit(int searchTimeLimit) {
        searchControls.setTimeLimit(searchTimeLimit);
    } 
 
    /** 
     * Specifies the attributes that will be returned as part of the search. 
     *<p> 
     * null indicates that all attributes will be returned. 
     * An empty array indicates no attributes are returned. 
     * 
     * @param attrs An array of attribute names identifying the attributes that 
     *             will be returned. Can be null. 
     */ 
    public void setReturningAttributes(String[] attrs) {
        searchControls.setReturningAttributes(attrs);
    }