|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sdnplatform.sync.internal.version.TimeBasedInconsistencyResolver<T>
T - The type f the versioned objectpublic class TimeBasedInconsistencyResolver<T>
Resolve inconsistencies based on timestamp in the vector clock
| Constructor Summary | |
|---|---|
TimeBasedInconsistencyResolver()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
java.util.List<Versioned<T>> |
resolveConflicts(java.util.List<Versioned<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 |
|---|
public TimeBasedInconsistencyResolver()
| Method Detail |
|---|
public java.util.List<Versioned<T>> resolveConflicts(java.util.List<Versioned<T>> items)
IInconsistencyResolverresolveConflict([null, null]) == nullt != null, then
resolveConflict([null, t]) == resolveConflict([t, null]) == t
resolveConflicts in interface IInconsistencyResolver<Versioned<T>>items - The items to be resolved
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||