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 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() in UpdateManager - 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_SIGNED
      method - the transport to fetch it over, e.g. UpdateMethod.HTTP
      id - plugin name or ignored
      currentVersion - the running version, compared against the remote one so an equal or older release is not offered
      maxTime - how long you have
      Returns:
      active task or null if unable to check