1 18 package sync4j.framework.engine; 19 20 import java.security.Principal ; 21 import java.sql.Timestamp ; 22 23 import sync4j.framework.engine.source.SyncSource; 24 import sync4j.framework.engine.SyncException; 25 import sync4j.framework.engine.SyncOperationStatus; 26 27 64 public interface SyncStrategy { 65 70 SyncOperationStatus[] sync(SyncOperation[] syncOperations) throws SyncException ; 71 72 83 SyncOperation[] prepareSlowSync(SyncSource[] sources , 84 Principal principal, 85 Timestamp nextSync , 86 boolean last ) 87 throws SyncException; 88 89 102 SyncOperation[] prepareFastSync(SyncSource[] sources , 103 Principal principal, 104 Timestamp lastSync , 105 Timestamp nextSync , 106 boolean last ) 107 throws SyncException; 108 109 112 void endSync() throws SyncException ; 113 } | Popular Tags |