com.netflix.astyanax.MultiMutationBatchManager Maven / Gradle / Ivy
package com.netflix.astyanax;
import java.util.Map;
import java.util.Map.Entry;
import com.google.common.collect.Maps;
import com.netflix.astyanax.connectionpool.exceptions.ConnectionException;
import com.netflix.astyanax.model.ConsistencyLevel;
/**
* Extension to mutation batch which allows for multiple 'named' mutation
* batches. The purpose of this manager is to allow mutations to be executed
* in order of batch creation so that subsequent mutations aren't attempted
* if there is a failure.
*
* @author elandau
*
*/
public class MultiMutationBatchManager implements MutationBatchManager {
private final String DEFAULT_BATCH_NAME = "default";
private final ThreadLocal