Class MasterCoordinator

  • All Implemented Interfaces:
    io.vertigo.core.node.component.Activeable, Coordinator

    public final class MasterCoordinator
    extends Object
    implements Coordinator, io.vertigo.core.node.component.Activeable
    Author:
    pchretien
    • Constructor Detail

      • MasterCoordinator

        public MasterCoordinator​(MasterPlugin masterPlugin)
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface io.vertigo.core.node.component.Activeable
      • stop

        public void stop()
        Specified by:
        stop in interface io.vertigo.core.node.component.Activeable
      • submit

        public <W,​R> Future<R> submit​(WorkItem<W,​R> workItem,
                                            WorkResultHandler<R> workResultHandler)
        Exécution d'un travail de façon asynchrone.
        Specified by:
        submit in interface Coordinator
        Type Parameters:
        W - Type de Work (Travail)
        R - result type
        Parameters:
        workItem - Travail à exécuter
        workResultHandler - Result handler
        Returns:
        Future for this result