Package freenet.client.async

Examples of freenet.client.async.ClientGetter.cancel()


        }
      } catch (PersistenceDisabledException e) {
        // Impossible
      }
    if(cancelled != null)
      cancelled.cancel(core.clientContext);
  }

  final File getBlobFile(int availableVersion) {
    return new File(node.clientCore.getPersistentTempDir(), blobFilenamePrefix + availableVersion + ".fblob");
  }
View Full Code Here


        USK myUsk = USK.create(URI.setSuggestedEdition(currentVersion));
        core.uskManager.unsubscribe(myUsk, this);
        c = cg;
        cg = null;
      }
      c.cancel(core.clientContext);
    } catch(Exception e) {
      Logger.minor(this, "Cannot kill NodeUpdater", e);
    }
  }
View Full Code Here

              null, new BinaryBlobWriter(new ArrayBucket()), null);
          if(logMINOR) Logger.minor(this, "Queued another revocation fetcher (count="+revocationDNFCounter+")");
        }
      }
      if(toCancel != null)
        toCancel.cancel(core.clientContext);
      if(cg != null) {
        core.clientContext.start(cg);
        if(logMINOR) Logger.minor(this, "Started revocation fetcher");
      }
      return wasRunning;
View Full Code Here

    ctx.allowedMIMETypes = allowedTypes;
    final ClientGetter get = new ClientGetter(nullCallback, uri, ctx, prio, new NullBucket(), null, null);
    core.getTicker().queueTimedJob(new Runnable() {
      @Override
      public void run() {
        get.cancel(core.clientContext);
      }

    }, timeout);
    try {
      core.clientContext.start(get);
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.