public class DefaultResolver<T> extends Object implements ConflictResolver<T>
This is the default ConflictResolver used if there is not one registered
in the ConflictResolverFactory
for the
class of object being resolved.
If it is presented with a collection of siblings with more than one entry it throws an Exception.
Constructor and Description |
---|
DefaultResolver() |
Modifier and Type | Method and Description |
---|---|
T |
resolve(List<T> siblings)
Detects conflict but does not resolve it.
|
public T resolve(List<T> siblings) throws UnresolvedConflictException
resolve
in interface ConflictResolver<T>
siblings
- the list of siblings returned from RiakUnresolvedConflictException
- if siblings
has > 1 entry.Copyright © 2016. All rights reserved.