Interface SyncManager
- 
 public interface SyncManager
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidderegister(Syncable syncable)Remove a tracked syncable.SyncablegetSyncable(java.lang.String key)Returns a syncable that has been registered with the central manager.java.util.List<Syncable>getSyncables()Returns all syncables registered with the central manaager.booleanregister(Syncable syncable)Registers aSyncablewith the central manager.
 
- 
- 
- 
Method Detail- 
registerboolean register(@Nonnull Syncable syncable)Registers aSyncablewith the central manager. This Syncable will be automatically run at the desired rate and schedule.- Returns:
- True if registration was successful.
- Throws:
- java.lang.IllegalArgumentException- if the Syncable had an invalid key.
 
 - 
deregistervoid deregister(@Nonnull Syncable syncable)Remove a tracked syncable. Safe to call if the syncable has not been registered, or has already been de-registered.
 - 
getSyncableSyncable getSyncable(@Nonnull java.lang.String key) Returns a syncable that has been registered with the central manager.
 - 
getSyncablesjava.util.List<Syncable> getSyncables() Returns all syncables registered with the central manaager.
 
- 
 
-