Package freenet.client.async

Examples of freenet.client.async.ClientGetter


      FetchContext fetchContext = mClient.getFetchContext();
      // We MUST use a finite amount of retries because this function is specified to do so and the callers rely on that.
      fetchContext.maxSplitfileBlockRetries = 2;
      fetchContext.maxNonSplitfileRetries = 2;
      fetchContext.maxOutputLength = WoTMessageXML.MAX_XML_SIZE; // TODO: fetch() also takes a maxSize parameter, why?
      ClientGetter g = mClient.fetch(uri, WoTMessageXML.MAX_XML_SIZE, requestClient, this, fetchContext, RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS);
      addFetch(g);
      mMessageLists.put(g, ref.getMessageList().getID());
      Logger.normal(this, "Trying to fetch message from " + uri);
    }
    catch(RuntimeException e) {
View Full Code Here


    FreenetURI uri = WoTMessageList.generateURI(identity, index).sskForUSK(); // We must use a SSK to disallow redirects.
    FetchContext fetchContext = mClient.getFetchContext();
    fetchContext.maxSplitfileBlockRetries = 2; /* 3 and above or -1 = cooldown queue. -1 is infinite */
    fetchContext.maxNonSplitfileRetries = 2;
    fetchContext.maxOutputLength = WoTMessageListXML.MAX_XML_SIZE; // TODO: fetch() also takes a maxSize parameter, why?
    ClientGetter g = mClient.fetch(uri, WoTMessageListXML.MAX_XML_SIZE, mRequestClient, this, fetchContext, RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS);
    addFetch(g);
    Logger.normal(this, "Trying to fetch MessageList from " + uri);
   
    // Not necessary because it's not a HashSet but a fixed-length queue so the identity will get removed sometime anyway.
    //catch(RuntimeException e) {
View Full Code Here

TOP

Related Classes of freenet.client.async.ClientGetter

Copyright © 2018 www.massapicom. 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.