Class ReadRemoveConflict

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

public class ReadRemoveConflict extends Conflict
Represents an MVCC conflict in which a key or range of keys that was read in one transaction was removed in another, simultaneous transaction.

Instances are immutable.

See Also:
  • Constructor Details

    • ReadRemoveConflict

      public ReadRemoveConflict(byte[] key)
      Constructor.
      Parameters:
      key - the single key that conflicted
      Throws:
      IllegalArgumentException - if key is null
    • ReadRemoveConflict

      public ReadRemoveConflict(KeyRange range)
      Constructor.
      Parameters:
      range - the range of keys that conflict
      Throws:
      IllegalArgumentException - if range is null
  • Method Details

    • getKeyRange

      public KeyRange getKeyRange()
      Get the key range at which the conflict occurred.
      Returns:
      the affected key range
    • 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