org.omnaest.utils.threads.submit
Class SubmitGroupFactory

java.lang.Object
  extended by 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

Constructor Summary
SubmitGroupFactory(ExecutorService executorService)
           
 
Method Summary
 ExecutorService getExecutorService()
           
<T> SubmitGroup<T>
newSubmitGroup(Class<T> type)
           
<T> SubmitGroup<T>
newSubmitGroup(Collection<T> resultCollection)
           
 SubmitGroupFactory setExceptionHandler(ExceptionHandler exceptionHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubmitGroupFactory

public SubmitGroupFactory(ExecutorService executorService)
Parameters:
executorService - ExecutorService
See Also:
SubmitGroupFactory
Method Detail

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.