KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > util > concurrent > ThreadPoolExecutor

java.util.concurrent
Class ThreadPoolExecutor

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by java.util.concurrent.ThreadPoolExecutor
All Implemented Interfaces:
Executor, ExecutorService
Direct Known Subclasses:
ScheduledThreadPoolExecutor
See Also:
Top Examples, purge(), remove(java.lang.Runnable), getQueue(), terminated(), afterExecute(java.lang.Runnable, java.lang.Throwable), beforeExecute(java.lang.Thread, java.lang.Runnable), ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy, ThreadPoolExecutor.CallerRunsPolicy, RejectedExecutionException, ThreadPoolExecutor.AbortPolicy, RejectedExecutionHandler.rejectedExecution(java.lang.Runnable, java.util.concurrent.ThreadPoolExecutor), ArrayBlockingQueue, LinkedBlockingQueue, SynchronousQueue, BlockingQueue, TimeUnit.NANOSECONDS, setKeepAliveTime(long, java.util.concurrent.TimeUnit), getKeepAliveTime(java.util.concurrent.TimeUnit), ThreadGroup, Executors.defaultThreadFactory(), ThreadFactory, prestartAllCoreThreads(), prestartCoreThread(), setMaximumPoolSize(int), setCorePoolSize(int), execute(java.lang.Runnable), getMaximumPoolSize(), getCorePoolSize(), getPoolSize(), Executors.newSingleThreadExecutor(), Executors.newFixedThreadPool(int), Executors.newCachedThreadPool()

protected void afterExecute(Runnable r,
                            Throwable t)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean awaitTermination(long timeout,
                                TimeUnit unit)
                         throws InterruptedException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void beforeExecute(Thread t,
                             Runnable r)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void execute(Runnable command)
See Also:
NullPointerException, RejectedExecutionException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void finalize()
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getActiveCount()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long getCompletedTaskCount()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getCorePoolSize()
See Also:
setCorePoolSize(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long getKeepAliveTime(TimeUnit unit)
See Also:
setKeepAliveTime(long, java.util.concurrent.TimeUnit)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getLargestPoolSize()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getMaximumPoolSize()
See Also:
setMaximumPoolSize(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getPoolSize()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public BlockingQueue<Runnable> getQueue()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public RejectedExecutionHandler getRejectedExecutionHandler()
See Also:
setRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long getTaskCount()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ThreadFactory getThreadFactory()
See Also:
setThreadFactory(java.util.concurrent.ThreadFactory)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isShutdown()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isTerminated()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isTerminating()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int prestartAllCoreThreads()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean prestartCoreThread()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void purge()
See Also:
Future
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean remove(Runnable task)
See Also:
purge()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setCorePoolSize(int corePoolSize)
See Also:
getCorePoolSize(), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setKeepAliveTime(long time,
                             TimeUnit unit)
See Also:
getKeepAliveTime(java.util.concurrent.TimeUnit), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setMaximumPoolSize(int maximumPoolSize)
See Also:
getMaximumPoolSize(), core pool size, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setRejectedExecutionHandler(RejectedExecutionHandler handler)
See Also:
getRejectedExecutionHandler(), NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setThreadFactory(ThreadFactory threadFactory)
See Also:
getThreadFactory(), NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void shutdown()
See Also:
RuntimePermission, SecurityException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public List<Runnable> shutdownNow()
See Also:
RuntimePermission, SecurityException, Thread.interrupt()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void terminated()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ThreadPoolExecutor(int corePoolSize,
                          int maximumPoolSize,
                          long keepAliveTime,
                          TimeUnit unit,
                          BlockingQueue<Runnable> workQueue)
See Also:
NullPointerException, IllegalArgumentException, Executors
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ThreadPoolExecutor(int corePoolSize,
                          int maximumPoolSize,
                          long keepAliveTime,
                          TimeUnit unit,
                          BlockingQueue<Runnable> workQueue,
                          RejectedExecutionHandler handler)
See Also:
NullPointerException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ThreadPoolExecutor(int corePoolSize,
                          int maximumPoolSize,
                          long keepAliveTime,
                          TimeUnit unit,
                          BlockingQueue<Runnable> workQueue,
                          ThreadFactory threadFactory)
See Also:
NullPointerException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ThreadPoolExecutor(int corePoolSize,
                          int maximumPoolSize,
                          long keepAliveTime,
                          TimeUnit unit,
                          BlockingQueue<Runnable> workQueue,
                          ThreadFactory threadFactory,
                          RejectedExecutionHandler handler)
See Also:
NullPointerException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags