Package io.permazen.kv.mvcc
Class ReadWriteConflict
java.lang.Object
io.permazen.kv.mvcc.Conflict
io.permazen.kv.mvcc.ReadWriteConflict
Represents an MVCC conflict in which a key that was read in one transaction had its value changed
in another, simultaneous transaction.
Instances are immutable.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ReadWriteConflict
public ReadWriteConflict(byte[] key) Constructor.Note: the
key
is not copied, so the caller should not modify the data therein.- Parameters:
key
- the conflicting key- Throws:
IllegalArgumentException
- ifkey
is null
-
-
Method Details
-
getKey
public byte[] getKey()Get the key at which the conflict occurred.Note: the returned
key
is not a copy, so the caller should not modify the data therein.- Returns:
- the affected key
-
hashCode
public int hashCode() -
equals
-
toString
-