Examples of SimplePool


Examples of jfun.yan.factory.SimplePool

  }
  public String toString(){
    return "session scope";
  }
  private static Pool getSessionScope(final Object key, final Session session){
    return new SimplePool(){
      public Object get() {
        return session.get(key);
      }
      public void set(Object val) {
        session.put(key, val);
View Full Code Here

Examples of org.apache.flex.forks.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.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

  // without it we would need a priviledged action.
  JspWriterImpl.lineSeparator=lineSeparator;
    }

    public JspFactoryImpl() {
  pool=new SimplePool( DEFAULT_POOL_SIZE );
  usePool=true;
    }
View Full Code Here

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

    public JspFactoryImpl( int size ) {
  if( size==0 ) {
      pool=null;
      usePool=false;
  } else {
      pool=new SimplePool( size );
  }
    }
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

  }
 
  servlet = (Servlet)servletClass.newInstance();
  if (useStmPool && ( servlet instanceof SingleThreadModel )) {
      if(stmPool == null){
    stmPool = new SimplePool(stmPoolSize);
      }
      stmPool.put(servlet);
      stmInstances++;
  }
  return servlet;
View Full Code Here

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

  // without it we would need a priviledged action.
  JspWriterImpl.lineSeparator=lineSeparator;
    }

    public JspFactoryImpl() {
  pool=new SimplePool( DEFAULT_POOL_SIZE );
  usePool=true;
    }
View Full Code Here

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

    public JspFactoryImpl( int size ) {
  if( size==0 ) {
      pool=null;
      usePool=false;
  } else {
      pool=new SimplePool( size );
  }
    }
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.