Examples of SimplePool


Examples of org.apache.tomcat.util.collections.SimplePool

    static final boolean usePool=false;
   
    public TcpWorkerThread(PoolTcpEndpoint endpoint) {
  this.endpoint = endpoint;
  if( usePool ) {
      connectionCache = new SimplePool(endpoint.getMaxThreads());
      for(int i = 0 ; i < endpoint.getMaxThreads()/2 ; i++) {
    connectionCache.put(new TcpConnection());
      }
  }
    }
View Full Code Here

Examples of org.apache.tomcat.util.collections.SimplePool

    static final boolean usePool=false;
   
    public TcpWorkerThread(PoolTcpEndpoint endpoint) {
  this.endpoint = endpoint;
  if( usePool ) {
      connectionCache = new SimplePool(endpoint.getMaxThreads());
      for(int i = 0 ; i < endpoint.getMaxThreads()/2 ; i++) {
    connectionCache.put(new TcpConnection());
      }
  }
    }
View Full Code Here

Examples of org.apache.tomcat.util.collections.SimplePool

    static final boolean usePool=false;
   
    public TcpWorkerThread(PoolTcpEndpoint endpoint) {
  this.endpoint = endpoint;
  if( usePool ) {
      connectionCache = new SimplePool(endpoint.getMaxThreads());
      for(int i = 0 ; i < endpoint.getMaxThreads()/2 ; i++) {
    connectionCache.put(new TcpConnection());
      }
  }
    }
View Full Code Here

Examples of org.apache.tomcat.util.collections.SimplePool

    static final boolean usePool=false;
   
    public TcpWorkerThread(PoolTcpEndpoint endpoint) {
  this.endpoint = endpoint;
  if( usePool ) {
      connectionCache = new SimplePool(endpoint.getMaxThreads());
      for(int i = 0 ; i < endpoint.getMaxThreads()/2 ; i++) {
    connectionCache.put(new TcpConnection());
      }
  }
    }
View Full Code Here

Examples of org.apache.tomcat.util.collections.SimplePool

    static final boolean usePool=false;
   
    public TcpWorkerThread(PoolTcpEndpoint endpoint) {
  this.endpoint = endpoint;
  if( usePool ) {
      connectionCache = new SimplePool(endpoint.getMaxThreads());
      for(int i = 0 ; i < endpoint.getMaxThreads()/2 ; i++) {
    connectionCache.put(new TcpConnection());
      }
  }
    }
View Full Code Here

Examples of org.apache.tomcat.util.collections.SimplePool

    static final boolean usePool=false;
   
    public TcpWorkerThread(PoolTcpEndpoint endpoint) {
  this.endpoint = endpoint;
  if( usePool ) {
      connectionCache = new SimplePool(endpoint.getMaxThreads());
      for(int i = 0 ; i < endpoint.getMaxThreads()/2 ; i++) {
    connectionCache.put(new TcpConnection());
      }
  }
    }
View Full Code Here

Examples of org.apache.tomcat.util.collections.SimplePool

    static final boolean usePool=true;
   
    public TcpWorkerThread(PoolTcpEndpoint endpoint) {
  this.endpoint = endpoint;
  if( usePool ) {
      connectionCache = new SimplePool(endpoint.getMaxThreads());
      for(int i = 0 ; i < endpoint.getMaxThreads()/2 ; i++) {
    connectionCache.put(new TcpConnection());
      }
  }
    }
View Full Code Here

Examples of org.apache.tomcat.util.collections.SimplePool

    static final boolean usePool=false;
   
    public TcpWorkerThread(PoolTcpEndpoint endpoint) {
  this.endpoint = endpoint;
  if( usePool ) {
      connectionCache = new SimplePool(endpoint.getMaxThreads());
      for(int i = 0 ; i < endpoint.getMaxThreads()/2 ; i++) {
    connectionCache.put(new TcpConnection());
      }
  }
    }
View Full Code Here

Examples of org.apache.velocity.util.SimplePool

     */
    private void initializeParserPool()
    {
        int numParsers = getInt( PARSER_POOL_SIZE, NUMBER_OF_PARSERS);

        parserPool = new SimplePool( numParsers);

        for (int i=0; i < numParsers ;i++ )
        {
            parserPool.put (createNewParser());
        }
View Full Code Here

Examples of org.apache.velocity.util.SimplePool

     */
    private void initializeParserPool()
    {
        int numParsers = getInt( PARSER_POOL_SIZE, NUMBER_OF_PARSERS);

        parserPool = new SimplePool( numParsers);

        for (int i=0; i < numParsers ;i++ )
        {
            parserPool.put (createNewParser());
        }
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.