com.scylladb.cdc.debezium.connector.ScyllaTaskContext Maven / Gradle / Ivy
package com.scylladb.cdc.debezium.connector;
import com.scylladb.cdc.model.StreamId;
import com.scylladb.cdc.model.TaskId;
import io.debezium.config.Configuration;
import io.debezium.connector.common.CdcSourceTaskContext;
import io.debezium.schema.DataCollectionId;
import org.apache.commons.lang3.tuple.Pair;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.SortedSet;
import java.util.function.Supplier;
public class ScyllaTaskContext extends CdcSourceTaskContext {
private final List>> tasks;
public ScyllaTaskContext(Configuration config, List>> tasks) {
super(Module.contextName(), config.getString(ScyllaConnectorConfig.LOGICAL_NAME), Collections::emptySet);
this.tasks = tasks;
}
public List>> getTasks() {
return tasks;
}
}