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
Modifier and TypeMethodDescription<W,R> Future <R> submit(WorkItem<W, R> workItem, WorkResultHandler<R> workResultHandler) Exécution d'un travail de façon asynchrone.
-
Method Details
-
submit
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
-