Interface SimpleTask<T>

  • Type Parameters:
    T - Type defining response after executing the task.
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface SimpleTask<T>
    Interface that should be implemented by users of task reactor and passed over to SimpleTaskWorker instance.
    • Method Detail

      • execute

        T execute​(WorkItem workItem)
        Method used for performing simple tasks defined by user.
        Parameters:
        workItem - work item provided by the dispatcher.
        Returns:
        custom response after executing simple task job.