Class ReadWriteConflict

java.lang.Object
io.permazen.kv.mvcc.Conflict
io.permazen.kv.mvcc.ReadWriteConflict

public class ReadWriteConflict extends Conflict
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 Details

    • ReadWriteConflict

      public ReadWriteConflict(ByteData key)
      Constructor.
      Parameters:
      key - the conflicting key
      Throws:
      IllegalArgumentException - if key is null
  • Method Details

    • getKey

      public ByteData getKey()
      Get the key at which the conflict occurred.
      Returns:
      the affected key
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object