Changeset e067761


Ignore:
Timestamp:
Jun 9, 2015 3:57:44 AM (5 years ago)
Author:
dev <dev@…>
Branches:
master
Children:
c666f8a
Parents:
226bee6
Message:

Added a new flavour of checkAvailable() to UpdateManager? interface.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/update/ConsoleUpdateManager.java

    r226bee6 re067761  
    276276        return _status;
    277277    }
    278    
    279     public String checkAvailable(UpdateType type, long maxWait) {
    280         return checkAvailable(type, "", maxWait);
    281     }
    282278
    283279    /**
     
    285281     *  Blocking.
    286282     *  An available update may still have a constraint or lack sources.
     283     *  @param type the UpdateType of this request
     284     *  @param id id of this request
     285     *  @param maxWait max time to block
     286     *  @return new version or null if nothing newer is available
     287     *  @since 0.9.21
     288     */
     289    public String checkAvailable(UpdateType type) {
     290        return checkAvailable(type, "", DEFAULT_CHECK_TIME);
     291    }
     292
     293    /**
     294     *  Is an update available?
     295     *  Blocking.
     296     *  An available update may still have a constraint or lack sources.
     297     *  @param type the UpdateType of this request
     298     *  @param maxWait max time to block
     299     *  @return new version or null if nothing newer is available
     300     */
     301    public String checkAvailable(UpdateType type, long maxWait) {
     302        return checkAvailable(type, "", maxWait);
     303    }
     304
     305    /**
     306     *  Is an update available?
     307     *  Blocking.
     308     *  An available update may still have a constraint or lack sources.
     309     *  @param type the UpdateType of this request
     310     *  @param id id of this request
    287311     *  @param maxWait max time to block
    288312     *  @return new version or null if nothing newer is available
  • core/java/src/net/i2p/update/UpdateManager.java

    r226bee6 re067761  
    128128     *  An available update may still have a constraint or lack sources.
    129129     *  @param type the UpdateType of this request
    130      *  @param maxWait max time to block
    131130     *  @return new version or null if nothing newer is available
    132131     *  @since 0.9.21
    133132     */
    134     public String checkAvailable(UpdateType type, long maxWait);
     133    public String checkAvailable(UpdateType type);
    135134   
    136135    /**
     
    140139     *  @param type the UpdateType of this request
    141140     *  @param maxWait max time to block
     141     *  @return new version or null if nothing newer is available
     142     *  @since 0.9.21
     143     */
     144    public String checkAvailable(UpdateType type, long maxWait);
     145   
     146    /**
     147     *  Is an update available?
     148     *  Blocking.
     149     *  An available update may still have a constraint or lack sources.
     150     *  @param type the UpdateType of this request
     151     *  @param maxWait max time to block
    142152     *  @param id id of this request
    143153     *  @return new version or null if nothing newer is available
Note: See TracChangeset for help on using the changeset viewer.