com.transferwise.tasks.processing.ITasksProcessingService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tw-tasks-core Show documentation
Show all versions of tw-tasks-core Show documentation
Transferwise Tasks Executor - Fire and forget until Alert.
The 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();
}