Package tilda.utils.concurrent
Class Executor
- java.lang.Object
-
- tilda.utils.concurrent.Executor
-
public class Executor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.Exception>
_Exceptions
protected java.util.concurrent.ExecutorService
_Executor
protected int
_MaxThreadCount
protected java.util.List<SimpleRunnable>
_Runnables
protected static org.apache.logging.log4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description Executor(int MaxThreadCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addException(java.lang.Exception E)
void
addRunnable(SimpleRunnable R)
void
clean()
java.util.List<SimpleRunnable>
getRunnables()
java.util.List<java.lang.Exception>
run()
-
-
-
Field Detail
-
LOG
protected static final org.apache.logging.log4j.Logger LOG
-
_Exceptions
protected java.util.List<java.lang.Exception> _Exceptions
-
_Runnables
protected java.util.List<SimpleRunnable> _Runnables
-
_Executor
protected java.util.concurrent.ExecutorService _Executor
-
_MaxThreadCount
protected final int _MaxThreadCount
-
-
Method Detail
-
addException
public void addException(java.lang.Exception E)
-
addRunnable
public void addRunnable(SimpleRunnable R) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getRunnables
public java.util.List<SimpleRunnable> getRunnables()
-
run
public java.util.List<java.lang.Exception> run()
-
clean
public void clean()
-
-