public final class DistributedCoordinator extends Object implements Coordinator, Activeable
| Constructor and Description |
|---|
DistributedCoordinator(MasterPlugin masterPlugin) |
| Modifier and Type | Method and Description |
|---|---|
<WR,W> boolean |
accept(WorkItem<WR,W> workItem)
Indique si ce type de work peut-être distribué.
|
void |
start() |
void |
stop() |
<WR,W> Future<WR> |
submit(WorkItem<WR,W> workItem,
Option<WorkResultHandler<WR>> workResultHandler)
Exécution d'un travail de façon asynchrone.
|
public DistributedCoordinator(MasterPlugin masterPlugin)
public <WR,W> Future<WR> submit(WorkItem<WR,W> workItem, Option<WorkResultHandler<WR>> workResultHandler)
submit in interface CoordinatorWR - Produit d'un work à l'issu de son exécutionW - Type de Work (Travail)public <WR,W> boolean accept(WorkItem<WR,W> workItem)
work - Travail à effectuerpublic final void start()
start in interface Activeablepublic final void stop()
stop in interface ActiveableCopyright © 2014. All Rights Reserved.