Skip to content

Commit a040eab

Browse files
author
eberhardtj
committed
Rename commitWithMs to commitWithinMs
1 parent 04e335e commit a040eab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/metafacture/solr/SolrWriter.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class SolrWriter extends DefaultSolrDocumentReceiver {
4545
/** Number of document per commit */
4646
private int batchSize;
4747
/** Time range in which a commit will happen. */
48-
private int commitWithMs;
48+
private int commitWithinMs;
4949

5050
/** Number of threads to run in parallel */
5151
int threads;
@@ -62,7 +62,7 @@ public SolrWriter(String url) {
6262
this.core = "default";
6363
this.threads = 1;
6464
this.batchSize = 1;
65-
this.commitWithMs = 500;
65+
this.commitWithinMs = 500;
6666
this.onStartup = true;
6767
}
6868

@@ -74,8 +74,8 @@ public void setBatchSize(int batchSize) {
7474
this.batchSize = batchSize;
7575
}
7676

77-
public void setCommitWithMs(int commitWithMs) {
78-
this.commitWithMs = commitWithMs;
77+
public void setCommitWithinMs(int commitWithinMs) {
78+
this.commitWithinMs = commitWithinMs;
7979
}
8080

8181
public void setThreads(int threads) {
@@ -98,7 +98,7 @@ public void process(SolrInputDocument document) {
9898
for (int i = 0; i < threads; i++) {
9999
SolrCommitProcess process = new SolrCommitProcess(documentChannel.in(), client, core);
100100
process.setBatchSize(batchSize);
101-
process.setCommitWithinMs(commitWithMs);
101+
process.setCommitWithinMs(commitWithinMs);
102102
parallel.addProcess(process);
103103
}
104104

0 commit comments

Comments
 (0)