public class MultiReaderBasedConnection extends Object implements MultiConnection
ILuceneConnection and searches the union of several
indexes on the fly| Constructor and Description |
|---|
MultiReaderBasedConnection(com.atlassian.bonnie.ILuceneConnection.Configuration connectionConfig,
Map<SearchIndex,com.atlassian.bonnie.ILuceneConnection> connectionByIndex) |
MultiReaderBasedConnection(Map<SearchIndex,com.atlassian.bonnie.ILuceneConnection> connectionByIndex) |
MultiReaderBasedConnection(SearchIndex index,
com.atlassian.bonnie.ILuceneConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
Object |
withReader(EnumSet<SearchIndex> indexes,
com.atlassian.bonnie.ILuceneConnection.ReaderAction action) |
void |
withSearch(EnumSet<SearchIndex> indexes,
com.atlassian.bonnie.ILuceneConnection.SearcherAction action) |
<T> T |
withSearcher(EnumSet<SearchIndex> indexes,
com.atlassian.bonnie.ILuceneConnection.SearcherWithTokenAction<T> action) |
<T> T |
withSearcher(EnumSet<SearchIndex> indexes,
long searchToken,
com.atlassian.bonnie.ILuceneConnection.SearcherWithTokenAction<T> action) |
public MultiReaderBasedConnection(SearchIndex index, com.atlassian.bonnie.ILuceneConnection connection)
public MultiReaderBasedConnection(Map<SearchIndex,com.atlassian.bonnie.ILuceneConnection> connectionByIndex)
public MultiReaderBasedConnection(com.atlassian.bonnie.ILuceneConnection.Configuration connectionConfig,
Map<SearchIndex,com.atlassian.bonnie.ILuceneConnection> connectionByIndex)
public Object withReader(EnumSet<SearchIndex> indexes, com.atlassian.bonnie.ILuceneConnection.ReaderAction action) throws com.atlassian.bonnie.LuceneException
withReader in interface MultiConnectioncom.atlassian.bonnie.LuceneExceptionpublic void withSearch(EnumSet<SearchIndex> indexes, com.atlassian.bonnie.ILuceneConnection.SearcherAction action) throws com.atlassian.bonnie.LuceneException
withSearch in interface MultiConnectioncom.atlassian.bonnie.LuceneExceptionpublic <T> T withSearcher(EnumSet<SearchIndex> indexes, com.atlassian.bonnie.ILuceneConnection.SearcherWithTokenAction<T> action)
withSearcher in interface MultiConnectionpublic <T> T withSearcher(EnumSet<SearchIndex> indexes, long searchToken, com.atlassian.bonnie.ILuceneConnection.SearcherWithTokenAction<T> action) throws com.atlassian.bonnie.SearchTokenExpiredException
withSearcher in interface MultiConnectionIllegalArgumentException - if the provided token was issued for different set of indexescom.atlassian.bonnie.SearchTokenExpiredExceptionCopyright © 2003–2021 Atlassian. All rights reserved.