|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
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 |
public SyncReplyType[] observeSyncReplyTypes()
public SyncBoDescriptor[] observerSyncBoTypes()
public void syncReplyReceived(SyncReply syncReply, SyncBoDescriptor syncBoDescriptor, java.lang.String syncBoKey)
syncReply
- the SyncReply that is receivedsyncBoDescriptor
- the SyncBo type to which this reply belongs.syncBoKey
- the key of the SyncBo to which this reply belongs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |