public abstract class AbstractSearchOperationFactory extends Object
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger
Logger for this class.
|
private Cache<SearchRequest> |
searchCache
Cache to use when performing searches.
|
private OperationExceptionHandler<SearchRequest,SearchResult> |
searchExceptionHandler
Handler to handle search exceptions.
|
private OperationResponseHandler<SearchRequest,SearchResult>[] |
searchResponseHandlers
Handlers to handle search responses.
|
Constructor and Description |
---|
AbstractSearchOperationFactory() |
Modifier and Type | Method and Description |
---|---|
protected SearchOperation |
createSearchOperation(Connection conn)
Creates a new search operation configured with the properties on this factory.
|
Cache<SearchRequest> |
getSearchCache()
Returns the search cache.
|
OperationExceptionHandler<SearchRequest,SearchResult> |
getSearchExceptionHandler()
Returns the search exception handler.
|
OperationResponseHandler<SearchRequest,SearchResult>[] |
getSearchResponseHandlers()
Returns the search response handlers.
|
void |
setSearchCache(Cache<SearchRequest> cache)
Sets the search cache.
|
void |
setSearchExceptionHandler(OperationExceptionHandler<SearchRequest,SearchResult> handler)
Sets the search exception handler.
|
void |
setSearchResponseHandlers(OperationResponseHandler<SearchRequest,SearchResult>... handlers)
Sets the search response handlers.
|
protected final Logger logger
private OperationExceptionHandler<SearchRequest,SearchResult> searchExceptionHandler
private OperationResponseHandler<SearchRequest,SearchResult>[] searchResponseHandlers
private Cache<SearchRequest> searchCache
public OperationExceptionHandler<SearchRequest,SearchResult> getSearchExceptionHandler()
public void setSearchExceptionHandler(OperationExceptionHandler<SearchRequest,SearchResult> handler)
handler
- search exception handlerpublic OperationResponseHandler<SearchRequest,SearchResult>[] getSearchResponseHandlers()
public void setSearchResponseHandlers(OperationResponseHandler<SearchRequest,SearchResult>... handlers)
handlers
- search response handlerspublic Cache<SearchRequest> getSearchCache()
public void setSearchCache(Cache<SearchRequest> cache)
cache
- to setprotected SearchOperation createSearchOperation(Connection conn)
conn
- to pass to the search operationCopyright © 2003-2019 Virginia Tech. All Rights Reserved.