All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.transferwise.tasks.processing.ITasksProcessingService Maven / Gradle / Ivy

There is a newer version: 1.43.0
Show newest version
package com.transferwise.tasks.processing;

import com.transferwise.tasks.triggering.TaskTriggering;
import java.util.function.Consumer;
import lombok.Data;
import lombok.experimental.Accessors;

public interface ITasksProcessingService {

  AddTaskForProcessingResponse addTaskForProcessing(TaskTriggering taskTriggering);

  @Data
  @Accessors(chain = true)
  class AddTaskForProcessingResponse {

    private ResultCode result;

    public enum ResultCode {
      OK, FULL
    }
  }

  void addTaskTriggeringFinishedListener(Consumer consumer);

  void startProcessing();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy