public abstract class IndexCollection<K,V,I extends Index<K,V>> extends Object implements LifecycleListener
| Modifier | Constructor and Description |
|---|---|
protected |
IndexCollection() |
| Modifier and Type | Method and Description |
|---|---|
I |
addWriteIndex(I index) |
I |
getSearchIndex() |
I |
getWriteIndex(int version) |
Collection<I> |
getWriteIndexes() |
void |
removeWriteIndex(int version) |
void |
setSearchIndex(I index) |
void |
start()
Invoked when the server is starting.
|
void |
stop()
Invoked when the server is stopping.
|
public I getSearchIndex()
public void setSearchIndex(I index)
public Collection<I> getWriteIndexes()
public void removeWriteIndex(int version)
public I getWriteIndex(int version)
public void start()
LifecycleListenerstart in interface LifecycleListenerpublic void stop()
LifecycleListenerstop in interface LifecycleListener