Examples of USKRetriever


Examples of freenet.client.async.USKRetriever

  protected void stopARKFetcher() {
    if(!node.enableARKs) return;
    Logger.minor(this, "Stopping ARK fetcher for " + this + " : " + myARK);
    // FIXME any way to reduce locking here?
    USKRetriever ret;
    synchronized(arkFetcherSync) {
      if(arkFetcher == null) {
        if(logMINOR) Logger.minor(this, "ARK fetcher not running for "+this);
        return;
      }
      ret = arkFetcher;
      arkFetcher = null;
    }
    final USKRetriever unsub = ret;
    node.executor.execute(new Runnable() {

      @Override
      public void run() {
        node.clientCore.uskManager.unsubscribeContent(myARK, unsub, true);
View Full Code Here

Examples of freenet.client.async.USKRetriever

    synchronized(mMessageManager) { // Don't acquire the lock twice
      usk = USK.create(WoTMessageList.generateURI(identity, mMessageManager.getUnavailableNewMessageListIndex(identity)));
      editionHint = mMessageManager.getNewMessageListIndexEditionHint(identity);
    }
     
    final USKRetriever retriever = fetch(usk);
    mRequests.put(identity.getID(), retriever);
    updateEditionHint(retriever, editionHint);
  }
View Full Code Here

Examples of freenet.client.async.USKRetriever

  public int getRunningFetchCount() {
    return mRequests.size();
  }
 
  private synchronized void abortFetch(String identityID) {
    USKRetriever retriever = mRequests.remove(identityID);

    if(retriever == null) {
      Logger.error(this, "Aborting fetch failed (no fetch found) for identity " + identityID);
      return;
    }
View Full Code Here

Examples of freenet.client.async.USKRetriever

   * @throws Exception
   */
  private synchronized void updateEditionHint(String identityID) throws Exception {
    try {
      final WoTIdentity identity = mIdentityManager.getIdentity(identityID);
      final USKRetriever retriever = mRequests.get(identityID);
       
      if(retriever == null)
        throw new NoSuchIdentityException("updateEdtitionHint() called for an identity which is not being fetched: " + identityID);

      final long editionHint = mMessageManager.getNewMessageListIndexEditionHint(identity);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.