public class ReindexStateHolder extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
failFast(Exception t) |
Map<String,Object> |
getAdditionalState() |
String |
getCollectionName() |
Exception |
getFailure() |
long |
getIndexableCount() |
static ReindexStateHolder |
getInstance(String collectionName)
Returns a shared instance of this class or null.
|
static ReindexStateHolder |
getInstance(String collectionName,
boolean incrementalCommits,
boolean createIfAbsent)
Creates or returns a shared instance of this class associated with the collectionName.
|
long |
getLastCommitted() |
long |
getUnindexedItemCount() |
long |
incrementIndexableCount(long delta) |
long |
incrementUnindexedItemCount(long delta) |
boolean |
isFailed() |
boolean |
isIncrementalCommits() |
void |
setLastCommitted(long lastCommitted) |
static void |
unregister(String collectionName) |
public static ReindexStateHolder getInstance(String collectionName)
collectionName - public static ReindexStateHolder getInstance(String collectionName, boolean incrementalCommits, boolean createIfAbsent)
collectionName - incrementalCommits - createIfAbsent - public static void unregister(String collectionName)
public String getCollectionName()
public boolean isIncrementalCommits()
public boolean isFailed()
public void failFast(Exception t)
public Exception getFailure()
public long getIndexableCount()
public long incrementIndexableCount(long delta)
public long getUnindexedItemCount()
public long incrementUnindexedItemCount(long delta)
public long getLastCommitted()
public void setLastCommitted(long lastCommitted)
Copyright © 2020. All rights reserved.