public final class CommitTracker extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
int |
DOC_COMMIT_DELAY_MS |
Constructor and Description |
---|
CommitTracker(String name,
SolrCore core,
int docsUpperBound,
int timeUpperBound,
boolean openSearcher,
boolean softCommit) |
Modifier and Type | Method and Description |
---|---|
void |
addedDocument(int commitWithin)
Indicate that documents have been added
|
void |
cancelPendingCommit() |
void |
close() |
void |
deletedDocument(int commitWithin)
Indicate that documents have been deleted
|
void |
didCommit()
Inform tracker that a commit has occurred
|
void |
didRollback()
Inform tracker that a rollback has occurred, cancel any pending commits
|
int |
getCommitCount() |
boolean |
getOpenSearcher() |
long |
getTimeUpperBound() |
void |
run()
This is the worker part for the ScheduledFuture
|
void |
scheduleCommitWithin(long commitMaxTime)
schedule individual commits
|
void |
setOpenSearcher(boolean openSearcher) |
void |
setTimeUpperBound(long timeUpperBound) |
String |
toString() |
public final int DOC_COMMIT_DELAY_MS
public boolean getOpenSearcher()
public void close()
public void scheduleCommitWithin(long commitMaxTime)
public void cancelPendingCommit()
public void addedDocument(int commitWithin)
public void deletedDocument(int commitWithin)
public void didCommit()
public void didRollback()
public void run()
public int getCommitCount()
public long getTimeUpperBound()
public void setTimeUpperBound(long timeUpperBound)
public void setOpenSearcher(boolean openSearcher)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.