org.omnaest.utils.threads.submit
Class SubmitGroupFactory
java.lang.Object
org.omnaest.utils.threads.submit.SubmitGroupFactory
- All Implemented Interfaces:
- Serializable
public class SubmitGroupFactory
- extends Object
- implements Serializable
Enclosure around an ExecutorService which allows to manage groups of submitted tasks with the same result type.
- Author:
- Omnaest
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubmitGroupFactory
public SubmitGroupFactory(ExecutorService executorService)
- Parameters:
executorService - ExecutorService- See Also:
SubmitGroupFactory
setExceptionHandler
public SubmitGroupFactory setExceptionHandler(ExceptionHandler exceptionHandler)
- Parameters:
exceptionHandler -
- Returns:
newSubmitGroup
public <T> SubmitGroup<T> newSubmitGroup(Class<T> type)
getExecutorService
public ExecutorService getExecutorService()
newSubmitGroup
public <T> SubmitGroup<T> newSubmitGroup(Collection<T> resultCollection)
Copyright © 2013. All Rights Reserved.