db4o

Db4oReplication.setConflictHandler Method 

registers a callback handler to be notified on replication conflicts.

[Visual Basic]
Sub setConflictHandler( _ 
   ByVal conflictHandler As Db4oCallback _ 
)
[C#]
void setConflictHandler(
   Db4oCallback conflictHandler
);
[C++]
void setConflictHandler(
   Db4oCallback* conflictHandler
);
[JScript]
function setConflictHandler(
   Db4oCallback conflictHandler
);

Parameters

conflictHandler
the object to be called upon conflicts.

Remarks

registers a callback handler to be notified on replication conflicts.

Conflicts occur, if an object has been modified in both the origin and destination ObjectContainer since the last time replication was run between the two ObjectContainers.

Upon a conflict the com.db4o.ext.Db4oCallback.callback method will be called in the conflict handler and a com.db4o.ext.Db4oReplicationConflict object will be passed as a parameter.

See Also

Db4oReplication Interface | com.db4o.ext Namespace