slib.utils.threads
Class PoolWorker

java.lang.Object
  extended by slib.utils.threads.PoolLocker
      extended by slib.utils.threads.PoolWorker

public class PoolWorker
extends PoolLocker

Author:
seb

Field Summary
 
Fields inherited from class slib.utils.threads.PoolLocker
capacity, lock, running
 
Constructor Summary
protected PoolWorker(int size)
           
 
Method Summary
 void forceShutdown()
           
 ExecutorService getPool()
           
 void shutdown()
           
 void shutdown(long timeout, TimeUnit timeunit)
           
 
Methods inherited from class slib.utils.threads.PoolLocker
addTask, awaitFreeResource, getCapacity, getLoad, taskComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolWorker

protected PoolWorker(int size)
Parameters:
size -
Method Detail

getPool

public ExecutorService getPool()
Returns:

forceShutdown

public void forceShutdown()

shutdown

public void shutdown()
              throws SLIB_Ex_Critic
Throws:
SLIB_Ex_Critic

shutdown

public void shutdown(long timeout,
                     TimeUnit timeunit)
              throws SLIB_Ex_Critic
Parameters:
timeout -
timeunit -
Throws:
SLIB_Ex_Critic


Copyright © 2013. All Rights Reserved.