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
Modifier and TypeMethodDescriptionwithReader
(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 Details
-
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
-