com.sap.ip.me.api.smartsync
Interface SyncReplyObserver


public interface SyncReplyObserver

Interface to be imlemented by the application. Alternative way for the application to access incoming SyncReply messages. The advantage of the using SyncBoInDelta.getSyncReply() is that Mobile Infrastructure can optimize inbound processing performance if no SyncBoInDeltaObserver is registered. The observer can be registerted at InboxNotifier.registerSyncReplyObserver(SyncReplyObserver) Usage:

    final SmartSyncRuntime smartSyncRuntime = SmartSyncRuntime.getInstance();
        final InboxNotifier inboxNotifier = smartsyncRuntime.getInboxNotifier();
        final SyncReplyObserver myObserver = createObserver();//create application specifiy observer
        inboxNotifier.registerSyncReplyObserver(myObserver);//register observer
 

Since:
MI 2.5
Author:
SAP AG
See Also:
InboxNotifier, SyncReply, SyncReplyType

Method Summary
 SyncBoDescriptor[] observerSyncBoTypes()
          Application has to implement this method to specifiy which SyncBo types to observer.
 SyncReplyType[] observeSyncReplyTypes()
          Application has to implement this method to specify which types of SyncReply to observe.
 void syncReplyReceived(SyncReply syncReply, SyncBoDescriptor syncBoDescriptor, java.lang.String syncBoKey)
          Callback method.
 

Method Detail

observeSyncReplyTypes

public SyncReplyType[] observeSyncReplyTypes()
Application has to implement this method to specify which types of SyncReply to observe.

Returns:
a list of all SyncReply types which will be observed.

observerSyncBoTypes

public SyncBoDescriptor[] observerSyncBoTypes()
Application has to implement this method to specifiy which SyncBo types to observer.

Returns:

syncReplyReceived

public void syncReplyReceived(SyncReply syncReply,
                              SyncBoDescriptor syncBoDescriptor,
                              java.lang.String syncBoKey)
Callback method. Informs the observer that a SyncReply is received from inbound processing.

Parameters:
syncReply - the SyncReply that is received
syncBoDescriptor - the SyncBo type to which this reply belongs.
syncBoKey - the key of the SyncBo to which this reply belongs.


Copyright © 2005 SAP AG. All Rights Reserved.