gnieh.sohva

strategy

package strategy

Visibility
  1. Public
  2. All

Type Members

  1. trait Strategy extends AnyRef

    A strategy indicates how update conflict are resolved.

Value Members

  1. object BarneyStinsonStrategy extends Strategy

    This strategy applies a simple rule: New is always better Whenever a conflict occurs when trying to save a document in the database, the newest document (the one the client wants to store) is taken and overrides the previous revision.

  2. object StructuralMergeStrategy extends Strategy

    This strategy applies a simple structural merge algorithm between variation from a base document to the last one in the database and from the base to the current revision of the document to merge

  3. object TedMosbyStrategy extends Strategy

    This strategy is the anti-BarneyStinsonStrategy by definition as it applies a simple rule: Old is always better.

Ungrouped