|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SyncBoDeltaFacade offers methods to applications in accessing the outbound delta data.
Method Summary | |
MeIterator |
getAllDelta()
Returns the iterator to the collection of SyncBoOutDelta data. |
void |
setSendType(SyncBoDescriptor syncBoDescriptor,
SyncBoOutDeltaSendType sendType)
Changes the send type of all outgoing (uploading) SyncBo deltas for a SyncBoDescriptor. |
Method Detail |
public MeIterator getAllDelta() throws SmartSyncException, PersistenceException
PersistenceException
- is thrown if any error happens in
persistence layer
SmartSyncException
- is thrown if any error happens in
SmartSync layerpublic void setSendType(SyncBoDescriptor syncBoDescriptor, SyncBoOutDeltaSendType sendType)
SyncBoOutDeltaSendType.SEND
.
The send type will be set for all following synchronizations but it will not be persisted. This
means it will be resetted each time the framework is restarted.
The following example changes all SyncBoDescriptors to direct so that all delta uploads
will be send synchronously:
final SmartSyncRuntime smartSyncRuntime = SmartSyncRuntime.getInstance(); final SyncBoDescriptorFacade descriptorFacade = smartSyncRuntime.getSyncBoDescriptorFacade(); final SyncBoOutDeltaFacade outDeltaFacade = smartSyncRuntime.getSyncBoOutDeltaFacade(); //Iterate thru all descriptors for(final SyncBoDescriptorIterator descriptorIt = descriptorFacade.getAllSyncBoDescriptors(); descriptorIt.hasNext();){ final SyncBoDescriptor syncBoDescriptor = descriptorIt.next(); outDeltaFacade.setSendType(syncBoDescriptor, SyncBoOutDeltaSendType.SEND_DIRECT); }
sendType
- the new sendType value
java.lang.IllegalArgumentException
- if SyncBoDescriptor or SyncBoOutDeltaSendType is null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |