org.omnaest.utils.threads.submit
Interface SubmitGroup<T>

Type Parameters:
T -
All Superinterfaces:
Serializable

public interface SubmitGroup<T>
extends Serializable

A group of Callable submits which share the same result type

Author:
Omnaest

Method Summary
 Waiter<T> doWait()
           
 SubmitGroup<T> submit(Callable<T> callable)
           
 SubmitGroup<T> submit(Callable<T> callable, int numberOfTimes)
           
 

Method Detail

submit

SubmitGroup<T> submit(Callable<T> callable)
Parameters:
callable - Callable
Returns:
this

submit

SubmitGroup<T> submit(Callable<T> callable,
                      int numberOfTimes)
Parameters:
callable - Callable
numberOfTimes -
Returns:
this

doWait

Waiter<T> doWait()
Returns:
Waiter


Copyright © 2013. All Rights Reserved.