se.unlogic.standardutils.threads
Interface TaskGroupHandler<Task extends TaskGroup,Controller extends ExecutionController<Task>>
- All Known Implementing Classes:
- ThreadPoolTaskGroupHandler
public interface TaskGroupHandler<Task extends TaskGroup,Controller extends ExecutionController<Task>>
execute
Controller execute(Task taskGroup)
throws RejectedExecutionException
- Throws:
RejectedExecutionException
getTotalTaskCount
int getTotalTaskCount()
getTaskGroupCount
int getTaskGroupCount()
abortAllTaskGroups
void abortAllTaskGroups()
getTaskGroups
List<Controller> getTaskGroups()
getStatus
Status getStatus()
awaitTermination
void awaitTermination(long timeout)
throws InterruptedException
- Throws:
InterruptedException
awaitTermination
void awaitTermination()
throws InterruptedException
- Throws:
InterruptedException
shutdown
void shutdown()
shutdownNow
void shutdownNow()
Copyright © 2011. All Rights Reserved.