|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.mobileconnectors.cognito.SyncConflict
public class SyncConflict
This consists of the conflicting record from the remote storage and the local storage.
| Constructor Summary | |
|---|---|
SyncConflict(Record remoteRecord,
Record localRecord)
Constructs a SyncConflict object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyncConflict(Record remoteRecord,
Record localRecord)
remoteRecord - record from remote storagelocalRecord - record from local storage| Method Detail |
|---|
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 record
public Record resolveWithLastWriterWins()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||