Package freenet.client.async

Examples of freenet.client.async.ClientRequester


  }

  abstract void register(boolean noTags) throws IdentifierCollisionException;

  public void cancel(ClientContext context) {
    ClientRequester cr = getClientRequest();
    // It might have been finished on startup.
    if(logMINOR) Logger.minor(this, "Cancelling "+cr+" for "+this+" persistence = "+persistence);
    if(cr != null) cr.cancel(context);
    freeData();
  }
View Full Code Here


      }
    }
   
    if(newPriorityClass >= 0 && newPriorityClass != priorityClass) {
      this.priorityClass = newPriorityClass;
      ClientRequester r = getClientRequest();
      r.setPriorityClass(priorityClass, server.core.clientContext);
      priorityClassChanged = true;
      if(client != null) {
        RequestStatusCache cache = client.getRequestStatusCache();
        if(cache != null) {
          cache.setPriority(identifier, newPriorityClass);
View Full Code Here

     */
    public final void onResume(ClientContext context) throws ResumeFailedException {
        client = context.persistentRoot.makeClient(global, clientName);
        lowLevelClient = client.lowLevelClient(realTime);
        innerResume(context);
        ClientRequester req = getClientRequest();
        if(req != null) req.onResume(context); // Can legally be null.
        context.persistentRoot.resume(this, global, clientName);
    }
View Full Code Here

    public abstract boolean fullyResumed();

    /** Called just before the final write when the node is shutting down. Should write any dirty
     * data to disk etc. */
    public void onShutdown(ClientContext context) {
        ClientRequester request = getClientRequest();
        if(request != null)
            request.onShutdown(context);
    }
View Full Code Here

TOP

Related Classes of freenet.client.async.ClientRequester

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.