public class WorkQueue extends Object implements IWorkQueue
| Modifier and Type | Class and Description |
|---|---|
static class |
WorkQueue.ExecutionHandler |
static class |
WorkQueue.ProcessScheduledFuture<V> |
static class |
WorkQueue.QueueState |
| Constructor and Description |
|---|
WorkQueue(ScheduledThreadPoolExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(IProcessIdentfier identifier) |
static IWorkQueue |
create(net.anwiba.commons.logging.ILogger logger,
String queueName,
int threadCount,
boolean asDaemon,
int priority) |
ICancelableRunnable |
execute(IRunnable runnable) |
void |
remove(IProcessIdentfier identifier) |
void |
shutdown() |
void |
waitForWorkQueueFinished(long timeout) |
public WorkQueue(ScheduledThreadPoolExecutor executor)
public static IWorkQueue create(net.anwiba.commons.logging.ILogger logger, String queueName, int threadCount, boolean asDaemon, int priority)
public ICancelableRunnable execute(IRunnable runnable) throws IllegalStateException
execute in interface IWorkQueueIllegalStateExceptionpublic void shutdown()
shutdown in interface IWorkQueuepublic void waitForWorkQueueFinished(long timeout)
waitForWorkQueueFinished in interface IWorkQueuepublic void remove(IProcessIdentfier identifier)
remove in interface IWorkQueuepublic void cancel(IProcessIdentfier identifier)
cancel in interface IWorkQueueCopyright © 2007–2017 Andreas W. Bartels. All rights reserved.