db4o |

# ReplicationConflictHandler.resolveConflict Method

the callback method to be implemented to resolve a conflict.

object resolveConflict(
ReplicationProcess replicationProcess,
object a,
object b
);

#### Parameters

replicationProcess
  the com.db4o.replication.ReplicationProcess for which this ReplicationConflictHandler is registered
a
  the object modified in the peerA ObjectContainer
b
  the object modified in the peerB ObjectContainer

#### Return Value

the object (a or b) that should prevail in the conflict or null, if no action is to be taken. If this would violate the direction set with setDirection no action will be taken.

#### Remarks

the callback method to be implemented to resolve a conflict.

#### See Also

ReplicationConflictHandler Interface | com.db4o.replication Namespace | com.db4o.replication.ReplicationProcess.peerA | com.db4o.replication.ReplicationProcess.peerB