voldemort.versioning
Class FailingInconsistencyResolver<T>

java.lang.Object
  extended by voldemort.versioning.FailingInconsistencyResolver<T>
All Implemented Interfaces:
InconsistencyResolver<T>

public class FailingInconsistencyResolver<T>
extends java.lang.Object
implements InconsistencyResolver<T>

An inconsistency resolver that does not attempt to resolve inconsistencies, but instead just throws an exception if one should occur.


Constructor Summary
FailingInconsistencyResolver()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.util.List<T> resolveConflicts(java.util.List<T> items)
          Take two different versions of an object and combine them into a single version of the object Implementations must maintain the contract that resolveConflict([null, null]) == null if t != null, then resolveConflict([null, t]) == resolveConflict([t, null]) == t
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FailingInconsistencyResolver

public FailingInconsistencyResolver()
Method Detail

resolveConflicts

public java.util.List<T> resolveConflicts(java.util.List<T> items)
Description copied from interface: InconsistencyResolver
Take two different versions of an object and combine them into a single version of the object Implementations must maintain the contract that
  1. resolveConflict([null, null]) == null
  2. if t != null, then resolveConflict([null, t]) == resolveConflict([t, null]) == t
  3. Specified by:
    resolveConflicts in interface InconsistencyResolver<T>
    Parameters:
    items - The items to be resolved
    Returns:
    The united object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu