com.basho.riak.client.cap
Class DefaultResolver<T>
java.lang.Object
com.basho.riak.client.cap.DefaultResolver<T>
- All Implemented Interfaces:
- ConflictResolver<T>
public final class DefaultResolver<T>
- extends Object
- implements ConflictResolver<T>
A conflict resolver that doesn't resolve conflict. If it is presented with a
collection of siblings with more than one entry it throws an UnresolvedConflictException
.
- Author:
- russell
- See Also:
UnresolvedConflictException
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultResolver
public DefaultResolver()
resolve
public T resolve(Collection<T> siblings)
- Detects conflict but does not resolve it.
- Specified by:
resolve
in interface ConflictResolver<T>
- Returns:
- null or the single value in the collection
- Throws:
UnresolvedConflictException
- if siblings
as > 1 entry.
Copyright © 2012. All Rights Reserved.