org.apache.solr.update
public final class CommitTracker extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
int |
DOC_COMMIT_DELAY_MS |
protected static org.slf4j.Logger |
log |
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 |
setTimeUpperBound(long timeUpperBound) |
String |
toString() |
protected static final org.slf4j.Logger log
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)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.