com.transferwise.tasks.domain.BaseTask1 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.
package com.transferwise.tasks.domain;
import java.util.UUID;
import lombok.Data;
import lombok.experimental.Accessors;
@Data
@Accessors(chain = true)
public class BaseTask1 implements IBaseTask {
private UUID id;
private String type;
private long version;
private int priority;
private String status;
public BaseTask toBaseTask() {
return new BaseTask().setVersion(getVersion()).setType(getType()).setPriority(getPriority()).setId(getId());
}
@Override
public ITaskVersionId getVersionId() {
return new TaskVersionId(id, version);
}
}