com.redis.spring.batch.writer.operation.CompositeOperation Maven / Gradle / Ivy
package com.redis.spring.batch.writer.operation;
import java.util.List;
import com.redis.spring.batch.writer.Operation;
import io.lettuce.core.RedisFuture;
import io.lettuce.core.api.async.BaseRedisAsyncCommands;
public class CompositeOperation implements Operation {
private List> delegates;
public CompositeOperation delegates(List> delegates) {
this.delegates = delegates;
return this;
}
@Override
public void execute(BaseRedisAsyncCommands commands, T item, List> futures) {
for (Operation delegate : delegates) {
delegate.execute(commands, item, futures);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy