Package tripleplay.syncdb
Interface SetResolver
public interface SetResolver
Provides a mechanism for resolving conflict between two conflicting sets in a sync db.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SetResolver
Uses the intersection of the client and server sets.static final SetResolver
Uses the server set, ignoring all elements in the client set.static final SetResolver
Uses the union of the client and server sets. -
Method Summary
-
Field Details
-
SERVER
Uses the server set, ignoring all elements in the client set. -
UNION
Uses the union of the client and server sets. -
INTERSECTION
Uses the intersection of the client and server sets.
-
-
Method Details
-
resolve
Resolves a conflict between a client and server set. The client set is mutated to reflect the resolved state.- Returns:
- whether the client set was mutated during resolution.
-