Class SetPoolExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
heros.solver.CountingThreadPoolExecutor
soot.jimple.infoflow.solver.executors.InterruptableExecutor
soot.jimple.infoflow.solver.executors.SetPoolExecutor
- All Implemented Interfaces:
Executor,ExecutorService
Executor class that ensures that no two equal tasks are in the queue at the
same time
- Author:
- Steven Arzt
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy -
Field Summary
FieldsFields inherited from class soot.jimple.infoflow.solver.executors.InterruptableExecutor
loggerFields inherited from class heros.solver.CountingThreadPoolExecutor
exception, numRunningTasks -
Constructor Summary
ConstructorsConstructorDescriptionSetPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterExecute(Runnable r, Throwable t) voidvoidInterrupts the executor.voidshutdown()Methods inherited from class soot.jimple.infoflow.solver.executors.InterruptableExecutor
awaitCompletion, awaitCompletion, isFinished, isTerminated, resetMethods inherited from class heros.solver.CountingThreadPoolExecutor
getExceptionMethods inherited from class java.util.concurrent.ThreadPoolExecutor
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated, toStringMethods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
Field Details
-
waiting
-
-
Constructor Details
-
SetPoolExecutor
public SetPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue)
-
-
Method Details
-
execute
- Specified by:
executein interfaceExecutor- Overrides:
executein classInterruptableExecutor
-
afterExecute
- Overrides:
afterExecutein classheros.solver.CountingThreadPoolExecutor
-
interrupt
public void interrupt()Description copied from class:InterruptableExecutorInterrupts the executor. This will make the awaitCompletion() methods return immediately and silently reject all new tasks.- Overrides:
interruptin classInterruptableExecutor
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceExecutorService- Overrides:
shutdownin classThreadPoolExecutor
-
shutdownNow
- Specified by:
shutdownNowin interfaceExecutorService- Overrides:
shutdownNowin classThreadPoolExecutor
-