com.redis.spring.batch.writer.operation.Exec 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;
import io.lettuce.core.api.async.RedisTransactionalAsyncCommands;
public class Exec implements Operation {
@SuppressWarnings("unchecked")
@Override
public void execute(BaseRedisAsyncCommands commands, T item, List> futures) {
futures.add(((RedisTransactionalAsyncCommands) commands).exec());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy