AI-generated Key Takeaways
-
SnapshotsClient.SnapshotConflict
is a result delivered when a conflict is detected during snapshot operations like opening or resolving conflicts. -
It provides access to the server's snapshot version, the conflicting snapshot, and the conflict ID.
-
The
SnapshotConflict
object also offersSnapshotContents
to update data and resolve the conflict usingSnapshotsClient.resolveConflict()
. -
You can obtain the conflict ID using
getConflictId()
, the conflicting snapshot withgetConflictingSnapshot()
, the resolution snapshot contents throughgetResolutionSnapshotContents()
, and the server's snapshot version viagetSnapshot()
.
Result delivered when a conflict was detected during
SnapshotsClient.open(SnapshotMetadata)
or
SnapshotsClient.resolveConflict(String, Snapshot)
.
Public Method Summary
String |
getConflictId()
Returns the ID of the conflict to resolve, if any.
|
Snapshot |
getConflictingSnapshot()
Returns the modified version of the
Snapshot
in the case of a conflict.
|
SnapshotContents |
getResolutionSnapshotContents()
Returns the
SnapshotContents object used to update the data in case of a
conflict.
|
Snapshot |
getSnapshot()
Returns the server's version of the
Snapshot
that was opened.
|
Inherited Method Summary
Public Methods
public String getConflictId ()
Returns the ID of the conflict to resolve, if any. Pass this to
SnapshotsClient.resolveConflict(String, Snapshot)
when resolving the
conflict.
public Snapshot getConflictingSnapshot ()
Returns the modified version of the Snapshot
in the case of a conflict.
public SnapshotContents getResolutionSnapshotContents ()
Returns the SnapshotContents
object used to update the data in case of a conflict. Pass this to
SnapshotsClient.resolveConflict(String, String, SnapshotMetadataChange,
SnapshotContents)
to resolve this conflict.