Class WorkItem<W,​R>

  • Type Parameters:
    R - result
    W - work

    public final class WorkItem<W,​R>
    extends Object
    Author:
    pchretien
    • Constructor Detail

      • WorkItem

        public WorkItem​(String id,
                        W work,
                        Class<? extends WorkEngine<W,​R>> workEngineClass)
        Constructor. This workItem is used to define a synchronous work.
        Parameters:
        id - Id
        work - Travail dont on représente l'état.
    • Method Detail

      • getId

        public String getId()
        Returns:
        WorkItem id
      • getWork

        public W getWork()
        Permet de récupérer les informations pour réaliser un traitement.
        Returns:
        le work
      • getWorkEngineClass

        public Class<? extends WorkEngine<W,​R>> getWorkEngineClass()
        Returns:
        WorkEngine provider