public static < T > ConflictHandler < T > localWins ( ) { return new ConflictHandler < T > ( ) { @ Override public T resolveConflict ( final BsonValue documentId , final ChangeEvent < T > localEvent , final ChangeEvent < T > remoteEvent ) { return localEvent . getFullDocument ( ) ; } } ; }
The local event will decide the next state of the document in question .