org.carrot2.source
Class MultipageSearchEngine.SearchEngineResponseCallable

java.lang.Object
  extended by org.carrot2.source.MultipageSearchEngine.SearchEngineResponseCallable
All Implemented Interfaces:
Callable<SearchEngineResponse>
Enclosing class:
MultipageSearchEngine

protected abstract class MultipageSearchEngine.SearchEngineResponseCallable
extends Object
implements Callable<SearchEngineResponse>

An implementation of Callable that increments page request count statistics before the actual search is made.


Constructor Summary
protected MultipageSearchEngine.SearchEngineResponseCallable()
           
 
Method Summary
 SearchEngineResponse call()
           
abstract  SearchEngineResponse search()
          Performs the actual search and returns the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipageSearchEngine.SearchEngineResponseCallable

protected MultipageSearchEngine.SearchEngineResponseCallable()
Method Detail

call

public final SearchEngineResponse call()
                                throws Exception
Specified by:
call in interface Callable<SearchEngineResponse>
Throws:
Exception

search

public abstract SearchEngineResponse search()
                                     throws Exception
Performs the actual search and returns the response.

Throws:
Exception


Copyright (c) Dawid Weiss, Stanislaw Osinski