Package org.w3c.util

Examples of org.w3c.util.ThreadCache


    throw new RuntimeException (this.getClass().getName()
              + "[construstructor]"
              + ": unable to create clients.");
  }
  // Create the thread cache:
  threadcache = new ThreadCache(server.getIdentifier() +
              "-socket-clients");
  threadcache.setCachesize(props.getInteger(MAXTHREADS_P, MAXTHREADS));
  threadcache.setThreadPriority(server.getClientThreadPriority());
  threadcache.setIdleTimeout(props.getInteger(IDLETO_P,IDLETO));
  threadcache.setGrowAsNeeded(true);
View Full Code Here


  } finally {
      try {
    fileIn.close();
      } catch (Exception e) {}
  }
  threadCache = new ThreadCache("resolver");
  threadCache.setThreadPriority(5);
  threadCache.setCachesize(cacheSize);
  threadCache.initialize();
    }
View Full Code Here

  }
    }

    public static synchronized void initialize() {
  if ( threadcache == null ) {
      threadcache = new ThreadCache("active-streams");
      threadcache.setCachesize(10);
      threadcache.initialize();
  }
    }
View Full Code Here

TOP

Related Classes of org.w3c.util.ThreadCache

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.