com.transferwise.tasks.triggering.TaskTriggering 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.triggering;
import com.transferwise.tasks.domain.BaseTask;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.kafka.common.TopicPartition;
@Data
@Accessors(chain = true)
public class TaskTriggering {
private BaseTask task;
private long offset;
private long sequence;
private TopicPartition topicPartition;
private String bucketId;
public boolean isSameProcessTrigger() {
return topicPartition == null;
}
}