Class ReadAdjustConflict

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

public class ReadAdjustConflict extends Conflict
Represents an MVCC conflict in which a key that was read in one transaction was adjusted via KVStore.adjustCounter() in another, simultaneous transaction.

Instances are immutable.

See Also:
  • Constructor Details

    • ReadAdjustConflict

      public ReadAdjustConflict(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 - if key 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()
      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