- All Known Implementing Classes:
DevSU3UpdateHandler, DummyHandler, NewsHandler, PluginUpdateHandler, UnsignedUpdateHandler, UpdateHandler, UpdateHandler
public interface Updater
Controls one or more types of updates. This must be registered with the UpdateManager.
Method Summary
All MethodsModifier and TypeMethodDescriptionupdate(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task.
Method Details
update
UpdateTask update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task. Should not block.- Parameters:
type- selects what is being fetched, e.g.UpdateType.ROUTER_SIGNEDmethod- how it is fetched, e.g.UpdateMethod.HTTPover I2PupdateSources- Where to get the new version fromid- plugin name or ignorednewVersion- new version to downloadmaxTime- how long you have- Returns:
- active task or null if unable to download