Package net.anwiba.commons.thread.queue
Interface IWorkQueue
-
- All Known Implementing Classes:
WorkQueue
public interface IWorkQueue
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel(IProcessIdentfier identifier)IProcessIdentfierexecute(IRunnable runnable)voidremove(IProcessIdentfier identifier)voidshutdown()voidwaitForWorkQueueFinished(long timeout)
-
-
-
Method Detail
-
execute
IProcessIdentfier execute(IRunnable runnable) throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
remove
void remove(IProcessIdentfier identifier)
-
shutdown
void shutdown()
-
waitForWorkQueueFinished
void waitForWorkQueueFinished(long timeout) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
cancel
void cancel(IProcessIdentfier identifier)
-
-