Interface MultiConnection
-
- All Known Implementing Classes:
MultiReaderBasedConnection
public interface MultiConnection
This class imitates lucene connection, but works for arbitrary subset of indexes- Since:
- 7.9.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
withReader(EnumSet<SearchIndex> indexes, ILuceneConnection.ReaderAction action)
void
withSearch(EnumSet<SearchIndex> indexes, ILuceneConnection.SearcherAction action)
<T> T
withSearcher(EnumSet<SearchIndex> indexes, long searchToken, ILuceneConnection.SearcherWithTokenAction<T> action)
<T> T
withSearcher(EnumSet<SearchIndex> indexes, ILuceneConnection.SearcherWithTokenAction<T> action)
-
-
-
Method Detail
-
withReader
Object withReader(EnumSet<SearchIndex> indexes, ILuceneConnection.ReaderAction action) throws LuceneException
- Throws:
LuceneException
-
withSearch
void withSearch(EnumSet<SearchIndex> indexes, ILuceneConnection.SearcherAction action) throws LuceneException
- Throws:
LuceneException
-
withSearcher
<T> T withSearcher(EnumSet<SearchIndex> indexes, ILuceneConnection.SearcherWithTokenAction<T> action)
-
withSearcher
<T> T withSearcher(EnumSet<SearchIndex> indexes, long searchToken, ILuceneConnection.SearcherWithTokenAction<T> action) throws SearchTokenExpiredException
- Throws:
SearchTokenExpiredException
-
-