com.basho.riak.client.cap
Interface ConflictResolver<T>

All Known Implementing Classes:
DefaultResolver

public interface ConflictResolver<T>

Implement to encode your conflict resolution strategy when faced with sibling values.

Author:
russell

Method Summary
 T resolve(Collection<T> siblings)
          Applies encoded logic to produce a single value from a Collection of sibling values.
 

Method Detail

resolve

T resolve(Collection<T> siblings)
Applies encoded logic to produce a single value from a Collection of sibling values.

Parameters:
siblings -
Returns:
a single value of type T
Throws:
UnresolvedConflictException - if it cannot determine a single value.


Copyright © 2012. All Rights Reserved.