Package io.vertigo.stella.impl.work
Interface Coordinator
-
- All Known Implementing Classes:
MasterCoordinator
,WorkersCoordinator
public interface Coordinator
Interface d'un Worker threadsafe. Permet d'exécuter un travail de façon - synchrone - asynchrone- Author:
- pchretien, npiedeloup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <W,R>
Future<R>submit(WorkItem<W,R> workItem, WorkResultHandler<R> workResultHandler)
Exécution d'un travail de façon asynchrone.
-
-
-
Method Detail
-
submit
<W,R> Future<R> submit(WorkItem<W,R> workItem, WorkResultHandler<R> workResultHandler)
Exécution d'un travail de façon asynchrone.- Type Parameters:
W
- Type de Work (Travail)R
- result type- Parameters:
workItem
- Travail à exécuterworkResultHandler
- Result handler- Returns:
- Future for this result
-
-