public class ThreadPoolManager extends IzouModule
log, main
Constructor and Description |
---|
ThreadPoolManager(Main main)
creates a new ThreadPoolManager
|
Modifier and Type | Method and Description |
---|---|
ExecutorService |
getAddOnsThreadPool()
returns the ThreadPool where all the AddOns are running
|
ExecutorService |
getIzouThreadPool()
returns the ThreadPool where all the Izou-Components are running
|
void |
handleThrowable(Throwable e,
Object target)
tries everything to log the exception
|
debug, debug, error, error, fatal, fatal, getID, getMain
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOwner
public ThreadPoolManager(Main main)
main
- instance of Mainpublic ExecutorService getIzouThreadPool()
this method should only be used by IzouModules
public ExecutorService getAddOnsThreadPool()
public void handleThrowable(Throwable e, Object target)
e
- the Throwabletarget
- an instance of the thing which has thrown the ExceptionCopyright © 2016. All rights reserved.