private Void multiPutForSingleHostInternal(final InetSocketAddress host, final Set<TableReference> tableRefs, final List<TableCellAndValue> batch, long timestamp) throws Exception { final MutationMap mutationMap = convertToMutations(batch, timestamp); return clientPool.runWithRetryOnHost(host, new FunctionCheckedException<CassandraClient, Void, Exception>() { @Override public Void apply(CassandraClient client) throws Exception { return wrappingQueryRunner.batchMutate("multiPut", client, tableRefs, mutationMap, WRITE_CONSISTENCY); } @Override public String toString() { return "batch_mutate(" + host + ", " + tableRefs + ", " + batch.size() + " values)"; } }); }
private Void multiPutForSingleHostInternal(final InetSocketAddress host, final Set<TableReference> tableRefs, final List<TableCellAndValue> batch, long timestamp) throws Exception { final MutationMap mutationMap = convertToMutations(batch, timestamp); return clientPool.runWithRetryOnHost(host, new FunctionCheckedException<CassandraClient, Void, Exception>() { @Override public Void apply(CassandraClient client) throws Exception { return wrappingQueryRunner.batchMutate("multiPut", client, tableRefs, mutationMap, WRITE_CONSISTENCY); } @Override public String toString() { return "batch_mutate(" + host + ", " + tableRefs + ", " + batch.size() + " values)"; } }); }