Package nginx.clojure

Examples of nginx.clojure.RequestVarFetcher


    Object o = array[i+1];
    if (o instanceof RequestVarFetcher) {
      if (Thread.currentThread() != NginxClojureRT.NGINX_MAIN_THREAD) {
        throw new IllegalAccessError("fetching lazy value of " + array[i] + " in LazyRequestMap can only be called in main thread, please pre-access it in main thread OR call LazyRequestMap.prefetchAll() first in main thread");
      }
      RequestVarFetcher rf = (RequestVarFetcher) o;
      array[i+1] = null;
      Object rt = rf.fetch(r, DEFAULT_ENCODING);
      array[i+1] = rt;
//      System.out.println("LazyRequestMap, key=" + rt);
      return rt;
    }
//    System.out.println("LazyRequestMap, key=" + array[i] + ", val=" + o);
View Full Code Here


    Object o = array[i];
    if (o instanceof RequestVarFetcher) {
      if (Thread.currentThread() != NginxClojureRT.NGINX_MAIN_THREAD) {
        throw new IllegalAccessError("fetching lazy value of " + array[i] + " in LazyRequestMap can only be called in main thread, please pre-access it in main thread OR call LazyRequestMap.prefetchAll() first in main thread");
      }
      RequestVarFetcher rf = (RequestVarFetcher) o;
      array[i] = null;
      Object rt = rf.fetch(r, DEFAULT_ENCODING);
      array[i] = rt;
      return rt;
    }
    return o;
  }
View Full Code Here

TOP

Related Classes of nginx.clojure.RequestVarFetcher

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.