Class DummyHandler

java.lang.Object
net.i2p.router.update.DummyHandler
All Implemented Interfaces:
Checker, Updater

class DummyHandler extends Object implements Checker, Updater
Dummy to lock up the updates for a period of time
Since:
0.9.4
  • Constructor Details

  • Method Details

    • check

      public UpdateTask check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime)
      Spins off an UpdateTask that sleeps
      Specified by:
      check in interface Checker
      Parameters:
      id - plugin name or ignored
      maxTime - how long you have
      Returns:
      active task or null if unable to check
    • update

      public UpdateTask update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime)
      Spins off an UpdateTask that sleeps
      Specified by:
      update in interface Updater
      Parameters:
      id - plugin name or ignored
      maxTime - how long you have
      Returns:
      active task or null if unable to download