|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.feedhenry.sdk.sync.FHSyncConfig
public class FHSyncConfig
The configuration options for the sync framework.
Constructor Summary | |
---|---|
FHSyncConfig()
|
Method Summary | |
---|---|
FHSyncConfig |
clone()
|
static FHSyncConfig |
fromJSON(JSONObject pObj)
Create a new configuration object from JSON. |
int |
getCrashCountWait()
Get the maximum crash count. |
JSONObject |
getJSON()
JSON representation of the configuration object |
int |
getSyncFrequency()
Get the current sync interval |
boolean |
isAutoSyncLocalUpdates()
Does the sync client automatically update local changes |
boolean |
isNotifyClientStorageFailed()
Does the sync client notify client storage failed event |
boolean |
isNotifyDeltaReceived()
Does the sync client notify delta received event |
boolean |
isNotifyLocalUpdateApplied()
Does the sync client notify local updates applied event |
boolean |
isNotifyOfflineUpdate()
Does the sync client notify offline update event |
boolean |
isNotifyRemoteUpdateApplied()
Does the sync client notify remote updates applied event |
boolean |
isNotifySyncCollisions()
Does the sync client notify sync collision event |
boolean |
isNotifySyncComplete()
Does the sync client notify sync complete event |
boolean |
isNotifySyncFailed()
Does the sync client notify sync failed event |
boolean |
isNotifySyncStarted()
Does the sync client notify sync start event |
boolean |
isNotifyUpdateFailed()
Does the sync client notify update failed event |
boolean |
isResendCrashedUpdates()
If the crash limit is reached, should the changes be re-submitted or abandoned. |
void |
setAutoSyncLocalUpdates(boolean mAutoSyncLocalUpdates)
Set if the sync client should automatically update local changes |
void |
setCrashCountWait(int mCrashCountWait)
Set the maximum crash count number. |
void |
setNotifyClientStorageFailed(boolean pNotifyClientStorageFailed)
Set if the sync client should notify client storage failed event |
void |
setNotifyDeltaReceived(boolean pNotifyDeltaReceived)
Set if the sync client should notify delta received event |
void |
setNotifyLocalUpdateApplied(boolean pNotifyLocalUpdateApplied)
Set if the sync client should notify local updates applied event |
void |
setNotifyOfflineUpdate(boolean pNotifyOfflineUpdate)
Set if the sync client notify offline update event. |
void |
setNotifyRemoteUpdateApplied(boolean pNotifyRemoteUpdateApplied)
Set if the sync client should notify remote updates applied event |
void |
setNotifySyncCollisions(boolean pNotifySyncCollsion)
Set if the sync client should notify sync collision event |
void |
setNotifySyncComplete(boolean pNotifySyncComplete)
Set if the sync client should notify complete event |
void |
setNotifySyncFailed(boolean pNotifySyncFailed)
Set if the sync client should notify sync failed event |
void |
setNotifySyncStarted(boolean pNotifySyncStarted)
Set if the sync client should notify start event |
void |
setNotifyUpdateFailed(boolean pNotifyUpdateFailed)
Set if the sync client should notify update failed event |
void |
setResendCrashedUpdates(boolean mResendCrashedUpdates)
If this is set to true, crashed changes will be re-submitted if crash count limit is reached, otherwise they will be abandoned. |
void |
setSyncFrequency(int pFrequency)
Set the sync interval. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FHSyncConfig()
Method Detail |
---|
public void setSyncFrequency(int pFrequency)
pFrequency
- the new sync intervalpublic int getSyncFrequency()
public boolean isNotifySyncStarted()
public void setNotifySyncStarted(boolean pNotifySyncStarted)
pNotifySyncStarted
- true or falsepublic boolean isNotifySyncComplete()
public void setNotifySyncComplete(boolean pNotifySyncComplete)
pNotifySyncComplete
- true or falsepublic boolean isNotifySyncCollisions()
public void setNotifySyncCollisions(boolean pNotifySyncCollsion)
pNotifySyncCollsion
- true or falsepublic boolean isNotifyOfflineUpdate()
public void setNotifyOfflineUpdate(boolean pNotifyOfflineUpdate)
pNotifyOfflineUpdate
- true of falsepublic boolean isNotifyUpdateFailed()
public void setNotifyUpdateFailed(boolean pNotifyUpdateFailed)
pNotifyUpdateFailed
- true or falsepublic boolean isNotifyRemoteUpdateApplied()
public void setNotifyRemoteUpdateApplied(boolean pNotifyRemoteUpdateApplied)
pNotifyRemoteUpdateApplied
- true or falsepublic boolean isNotifyLocalUpdateApplied()
public void setNotifyLocalUpdateApplied(boolean pNotifyLocalUpdateApplied)
pNotifyLocalUpdateApplied
- true or falsepublic boolean isNotifyDeltaReceived()
public void setNotifyDeltaReceived(boolean pNotifyDeltaReceived)
pNotifyDeltaReceived
- true or falsepublic boolean isNotifySyncFailed()
public void setNotifySyncFailed(boolean pNotifySyncFailed)
pNotifySyncFailed
- true or falsepublic void setNotifyClientStorageFailed(boolean pNotifyClientStorageFailed)
pNotifyClientStorageFailed
- true or falsepublic boolean isNotifyClientStorageFailed()
public boolean isAutoSyncLocalUpdates()
public void setAutoSyncLocalUpdates(boolean mAutoSyncLocalUpdates)
mAutoSyncLocalUpdates
- true of falsepublic int getCrashCountWait()
public void setCrashCountWait(int mCrashCountWait)
mCrashCountWait
- the crash limitpublic boolean isResendCrashedUpdates()
public void setResendCrashedUpdates(boolean mResendCrashedUpdates)
mResendCrashedUpdates
- true or false.public JSONObject getJSON()
public static FHSyncConfig fromJSON(JSONObject pObj)
pObj
- the sync config JSON
public FHSyncConfig clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |