public class ThreadedExecutor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
MAX_POLL_TIME |
Constructor and Description |
---|
ThreadedExecutor(int maxThreads,
long requestTimeout) |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.Runnable command)
Execute
|
int |
getActiveCount()
Return number of active threads
|
boolean |
terminate(long terminationTimeout)
Terminate the thread pool.
|
public static final long MAX_POLL_TIME
public void execute(java.lang.Runnable command) throws java.util.concurrent.RejectedExecutionException
command
- java.util.concurrent.RejectedExecutionException
public int getActiveCount()
public boolean terminate(long terminationTimeout) throws java.lang.InterruptedException
java.lang.InterruptedException
Copyright © 2012 Bixo Labs