Interface SyncManager
-
public interface SyncManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deregister(Syncable syncable)
Remove a tracked syncable.boolean
register(Syncable syncable)
Registers aSyncable
with the central manager.
-
-
-
Method Detail
-
register
boolean register(@Nonnull Syncable syncable)
Registers aSyncable
with 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.
-
deregister
void deregister(@Nonnull Syncable syncable)
Remove a tracked syncable. Safe to call if the syncable has not been registered, or has already been de-registered.
-
-