- All Known Implementing Classes:
DevSU3UpdateHandler, DummyHandler, NewsHandler, PluginUpdateHandler, UnsignedUpdateHandler
public interface Checker
Controls one or more types of updates. This must be registered with the UpdateManager.
Method Summary
All MethodsModifier and TypeMethodDescriptioncheck(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Check for updates.
Method Details
check
UpdateTask check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Check for updates. Should not block. If any are found, call back to notifyVersionAvailable() inUpdateManager- the overload taking a sourceMap when more than one update method was found at once.- Parameters:
type- the kind of update to look for, e.g.UpdateType.ROUTER_SIGNEDmethod- the transport to fetch it over, e.g.UpdateMethod.HTTPid- plugin name or ignoredcurrentVersion- the running version, compared against the remote one so an equal or older release is not offeredmaxTime- how long you have- Returns:
- active task or null if unable to check