com.scalar.db.transaction.consensuscommit.UncommittedRecordException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalardb Show documentation
Show all versions of scalardb Show documentation
A universal transaction manager that achieves database-agnostic transactions and distributed transactions that span multiple databases
The newest version!
package com.scalar.db.transaction.consensuscommit;
import com.google.common.collect.ImmutableList;
import com.scalar.db.api.Selection;
import com.scalar.db.exception.transaction.CrudConflictException;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
public class UncommittedRecordException extends CrudConflictException {
private final Selection selection;
private final List results;
@SuppressFBWarnings("EI_EXPOSE_REP2")
public UncommittedRecordException(
Selection selection, TransactionResult result, String message, String transactionId) {
super(message, transactionId);
this.selection = selection;
results = ImmutableList.of(result);
}
@SuppressFBWarnings("EI_EXPOSE_REP")
public Selection getSelection() {
return selection;
}
public List getResults() {
return results;
}
}