public final class ScheduledCommitPolicy extends AbstractCommitPolicy
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DELAY_MS |
indexWriterHolder| Constructor and Description |
|---|
ScheduledCommitPolicy(org.hibernate.search.backend.impl.lucene.IndexWriterHolder indexWriterHolder,
String indexName,
int delay) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDelay() |
ScheduledExecutorService |
getScheduledExecutorService() |
void |
onChangeSetApplied(boolean someFailureHappened,
boolean streaming)
A changeset was applied to the index
|
void |
onClose()
Backend shutting down
|
void |
onFlush()
An explicit flush was requested
|
getIndexWriter, getIndexWriterpublic static final int DEFAULT_DELAY_MS
public ScheduledCommitPolicy(org.hibernate.search.backend.impl.lucene.IndexWriterHolder indexWriterHolder,
String indexName,
int delay)
public int getDelay()
public void onChangeSetApplied(boolean someFailureHappened,
boolean streaming)
CommitPolicysomeFailureHappened - true if any failure happenedstreaming - true if changesets are part of a stream of operationspublic ScheduledExecutorService getScheduledExecutorService()
public void onFlush()
CommitPolicypublic void onClose()
CommitPolicyonClose in interface CommitPolicyonClose in class AbstractCommitPolicyCopyright © 2006–2015 Hibernate. All rights reserved.