public class MultiReaderBasedConnection extends Object implements MultiConnection
ILuceneConnection
and searches the union of several
indexes on the flyConstructor 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 MultiConnection
com.atlassian.bonnie.LuceneException
public void withSearch(EnumSet<SearchIndex> indexes, com.atlassian.bonnie.ILuceneConnection.SearcherAction action) throws com.atlassian.bonnie.LuceneException
withSearch
in interface MultiConnection
com.atlassian.bonnie.LuceneException
public <T> T withSearcher(EnumSet<SearchIndex> indexes, com.atlassian.bonnie.ILuceneConnection.SearcherWithTokenAction<T> action)
withSearcher
in interface MultiConnection
public <T> T withSearcher(EnumSet<SearchIndex> indexes, long searchToken, com.atlassian.bonnie.ILuceneConnection.SearcherWithTokenAction<T> action) throws com.atlassian.bonnie.SearchTokenExpiredException
withSearcher
in interface MultiConnection
IllegalArgumentException
- if the provided token was issued for different set of indexescom.atlassian.bonnie.SearchTokenExpiredException
Copyright © 2003–2021 Atlassian. All rights reserved.