return this to allow method chaining for setTimeAllowed

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@674286 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-07-06 12:04:43 +00:00
parent 5f5bd5320b
commit 7990b2399a
1 changed files with 2 additions and 1 deletions

View File

@ -473,12 +473,13 @@ public class SolrQuery extends ModifiableSolrParams
*
*@param milliseconds the time in milliseconds allowed for this query
*/
public void setTimeAllowed(Integer milliseconds) {
public SolrQuery setTimeAllowed(Integer milliseconds) {
if (milliseconds == null) {
this.remove(CommonParams.TIME_ALLOWED);
} else {
this.set(CommonParams.TIME_ALLOWED, milliseconds);
}
return this;
}
/**