|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContactSyncCallback
Observer interface used within Contact sync engine to allow processor to report status back to the main Contact sync engine.
Method Summary | |
---|---|
BaseEngine |
getEngine()
Called by processor to fetch the contact sync engine (needed for sending requests to the server). |
void |
onDatabaseChanged()
Called by processor when a change is made to the local database. |
void |
onProcessorComplete(ServiceStatus status,
java.lang.String failureList,
java.lang.Object data)
Called by processor when it has finished running. |
void |
setActiveRequestId(int reqId)
Used when a processor sends a request to the server to notify the BaseEngine class of the request ID. |
void |
setSyncStatus(SyncStatus syncStatus)
Used by processors to provide an indication of their current progress. |
void |
setTimeout(long timeout)
Used by processors to set a timeout. |
Method Detail |
---|
void onProcessorComplete(ServiceStatus status, java.lang.String failureList, java.lang.Object data)
status
- SUCCESS or an error code from the processorfailureList
- A description of any errors that occurred during the
sync or an empty string.data
- Allows processors to send custom data to the contact sync
engine.void onDatabaseChanged()
BaseEngine getEngine()
void setTimeout(long timeout)
BaseSyncProcessor.onTimeoutEvent()
function will be called by the
contact sync engine when the timeout event occurs.
timeout
- Timeout based on current time in milliseconds.void setSyncStatus(SyncStatus syncStatus)
SyncStatus
- Status of the processor, must not be NULL.
java.security.InvalidParameterException
- when SyncStatus is NULL.void setActiveRequestId(int reqId)
BaseEngine
class of the request ID. If used, the
BaseEngine
will only send responses which match the request.
reqId
- Request ID received from one of the API functions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc