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 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 Details

    • 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écuter
      workResultHandler - Result handler
      Returns:
      Future for this result