/** * Returns the thread factory. * * @return Returns configuration specific thread pool */ public ThreadFactory getThreadPool() { if (threadPool == null) { threadPool = new ThreadPool(); } return threadPool; }
public ThreadPool(int corePoolSize, int maxPoolSize) { this.corePoolSize = corePoolSize; this.maxPoolSize = maxPoolSize; setExecutor(createDefaultExecutor("Axis2 Task", Thread.NORM_PRIORITY, true)); }
public ThreadPool(int corePoolSize, int maxPoolSize) { this.corePoolSize = corePoolSize; this.maxPoolSize = maxPoolSize; setExecutor(createDefaultExecutor("Axis2 Task", Thread.NORM_PRIORITY, true)); }
/** * Returns the thread factory. * * @return Returns configuration specific thread pool */ public ThreadFactory getThreadPool() { if (threadPool == null) { threadPool = new ThreadPool(); } return threadPool; }
public ThreadPool() { setExecutor(createDefaultExecutor("Axis2 Task", Thread.NORM_PRIORITY, true)); }
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);
public ThreadPool() { setExecutor(createDefaultExecutor("Axis2 Task", Thread.NORM_PRIORITY, true)); }