no.sesat.search.mode.executor
Interface SearchCommandExecutor


public interface SearchCommandExecutor

An object that executes a list of Callable tasks.

Version:
$Revision: 7225 $

Method Summary
 Map<Future<ResultList<ResultItem>>,SearchCommand> invokeAll(Collection<SearchCommand> callables)
          Invoke all commands returning a list of Future holding their results.
 void stop()
          Stops this executor, cancelling all pending tasks.
 Map<Future<ResultList<ResultItem>>,SearchCommand> waitForAll(Map<Future<ResultList<ResultItem>>,SearchCommand> results, int timeoutInMillis)
           
 

Method Detail

stop

void stop()
Stops this executor, cancelling all pending tasks.


invokeAll

Map<Future<ResultList<ResultItem>>,SearchCommand> invokeAll(Collection<SearchCommand> callables)
                                                            throws InterruptedException
Invoke all commands returning a list of Future holding their results.

Parameters:
callables - The list of Callable to execute.
Returns:
the list of Futures holding the results.
Throws:
InterruptedException

waitForAll

Map<Future<ResultList<ResultItem>>,SearchCommand> waitForAll(Map<Future<ResultList<ResultItem>>,SearchCommand> results,
                                                             int timeoutInMillis)
                                                             throws InterruptedException,
                                                                    TimeoutException,
                                                                    ExecutionException
Throws:
InterruptedException
TimeoutException
ExecutionException


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.