Package io.anyline2.legacy
Class AnylineWorkerThreadPool
- java.lang.Object
-
- io.anyline2.legacy.AnylineWorkerThreadPool
-
public class AnylineWorkerThreadPool extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRunnable(java.lang.String id, AnylineWorkerRunnable runnable)
void
cancel()
void
execute(java.lang.Runnable runnable)
com.google.common.util.concurrent.ListenableFuture<?>
execute(java.util.concurrent.Callable<?> callable)
static AnylineWorkerThreadPool
getInstance()
void
shutDownPool()
-
-
-
Method Detail
-
getInstance
public static AnylineWorkerThreadPool getInstance()
-
shutDownPool
public void shutDownPool()
-
addRunnable
public void addRunnable(java.lang.String id, AnylineWorkerRunnable runnable)
-
execute
public com.google.common.util.concurrent.ListenableFuture<?> execute(java.util.concurrent.Callable<?> callable)
-
execute
public void execute(java.lang.Runnable runnable)
-
cancel
public void cancel()
-
-