java.lang.Object
net.anwiba.commons.thread.queue.WorkQueue
- All Implemented Interfaces:
IWorkQueue
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel(IProcessIdentfier identifier) static IWorkQueuevoidremove(IProcessIdentfier identifier) voidshutdown()voidwaitForWorkQueueFinished(long timeout)
-
Constructor Details
-
WorkQueue
-
-
Method Details
-
create
public static IWorkQueue create(ILogger logger, String queueName, int threadCount, boolean asDaemon, int priority) -
execute
- Specified by:
executein interfaceIWorkQueue- Throws:
IllegalStateException
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceIWorkQueue
-
waitForWorkQueueFinished
public void waitForWorkQueueFinished(long timeout) - Specified by:
waitForWorkQueueFinishedin interfaceIWorkQueue
-
remove
- Specified by:
removein interfaceIWorkQueue
-
cancel
- Specified by:
cancelin interfaceIWorkQueue
-