Package org.apache.axis2.util.threadpool

Examples of org.apache.axis2.util.threadpool.ThreadPool


                connectionManagerParams.setTcpNoDelay(true);
                connectionManagerParams.setStaleCheckingEnabled(true);
                connectionManagerParams.setLinger(0);
                connectionManager.setParams(connectionManagerParams);
                httpClient = new HttpClient(connectionManager);
                configContext.setThreadPool(new ThreadPool(1, 5));
                configContext.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE);
                configContext.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient);
            }

            return new ServiceClient(configContext, axisService);
View Full Code Here


  public int INVOKER_THREADPOOL_SIZE = 5;

  private WorkerLock lock = null;
 
  public Invoker() {
    threadPool = new ThreadPool(INVOKER_THREADPOOL_SIZE,
        INVOKER_THREADPOOL_SIZE);
    lock = new WorkerLock ();
  }
View Full Code Here

    public int SENDER_THREADPOOL_SIZE = 5;
   
    private WorkerLock lock = null;
   
    public Sender () {
      threadPool = new ThreadPool (SENDER_THREADPOOL_SIZE,SENDER_THREADPOOL_SIZE);
      lock = new WorkerLock ();
    }
View Full Code Here

                connectionManagerParams.setTcpNoDelay(true);
                connectionManagerParams.setStaleCheckingEnabled(true);
                connectionManagerParams.setLinger(0);
                connectionManager.setParams(connectionManagerParams);
                httpClient  = new HttpClient(connectionManager);
                configContext.setThreadPool(new ThreadPool(1, 5));
                configContext.setProperty(HTTPConstants.REUSE_HTTP_CLIENT,
                                          Boolean.TRUE);
                configContext.setProperty(HTTPConstants.CACHED_HTTP_CLIENT,
                                          httpClient);
            }
View Full Code Here

        out.defaultWriteObject();
    }

    private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
        in.defaultReadObject();
        threadPool = new ThreadPool();
    }
View Full Code Here

    /**
     * @return the Gloal ThradPool
     */
    public ThreadPool getThreadPool() {
        if (threadPool == null) {
            threadPool = new ThreadPool();
        }
        return threadPool;
    }
View Full Code Here

     *
     * @return Returns configuration specific thread pool
     */
    public ThreadFactory getThreadPool() {
        if (threadPool == null) {
            threadPool = new ThreadPool();
        }

        return threadPool;
    }
View Full Code Here

                                                   operationName);

        ConfigurationContext configcontext = UtilServer.createClientConfigurationContext();

        // Use max of 3 threads for the async thread pool
        configcontext.setThreadPool(new ThreadPool(1, 3));

        OMFactory fac = OMAbstractFactory.getOMFactory();
        ServiceClient sender = null;
        try {
            Options options = new Options();
View Full Code Here

     *
     * @return Returns configuration specific thread pool
     */
    public ThreadFactory getThreadPool() {
        if (threadPool == null) {
            threadPool = new ThreadPool();
        }

        return threadPool;
    }
View Full Code Here

      ThreadFactory threadPool) throws IOException {
    if (socketfactory == null) {
      socketfactory = new SimplePlainSocketFactory();
    }
    if (threadPool == null) {
      threadPool = new ThreadPool();
    }
    this.threadPool = threadPool;
    listener = socketfactory.createServerSocket(port);
    if (LOG.isDebugEnabled()) {
      LOG.debug("Starting test HTTP server on port " + getLocalPort());
View Full Code Here

TOP

Related Classes of org.apache.axis2.util.threadpool.ThreadPool

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.