com.epam.common.thread
Class ThreadPool

java.lang.Object
  extended by com.epam.common.thread.ThreadPool

public class ThreadPool
extends Object

User: Mykhailo_Sereda Date: 05.11.12 Time: 14:53


Constructor Summary
ThreadPool(int noOfThreads, SimpleBlockingQueue queue)
           
ThreadPool(int noOfThreads, String threadNamePrefix, SimpleBlockingQueue queue)
           
 
Method Summary
 void execute(Runnable task)
           
 void stop(boolean interrupt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPool

public ThreadPool(int noOfThreads,
                  SimpleBlockingQueue queue)

ThreadPool

public ThreadPool(int noOfThreads,
                  String threadNamePrefix,
                  SimpleBlockingQueue queue)
Method Detail

execute

public void execute(Runnable task)
             throws InterruptedException
Throws:
InterruptedException

stop

public void stop(boolean interrupt)


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.