public class SyncConflict
extends java.lang.Object
Constructor and Description |
---|
SyncConflict(Record remoteRecord,
Record localRecord)
Constructs a SyncConflict object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Gets the key of the record that is in conflict.
|
Record |
getLocalRecord()
Gets the local record that is in conflict.
|
Record |
getRemoteRecord()
Gets the remote record that is in conflict.
|
Record |
resolveWithLastWriterWins()
Resolves conflict with last writer wins.
|
Record |
resolveWithLocalRecord()
Resolves conflict with local record
|
Record |
resolveWithRemoteRecord()
Resolves conflict with remote record
|
Record |
resolveWithValue(java.lang.String newValue)
Resolves conflict with a new value.
|
public java.lang.String getKey()
public Record getRemoteRecord()
public Record getLocalRecord()
public Record resolveWithRemoteRecord()
public Record resolveWithLocalRecord()
public Record resolveWithValue(java.lang.String newValue)
newValue
- new value of the recordpublic Record resolveWithLastWriterWins()
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.