Package com.atlassian.bamboo.build
Class LimitedConcurrencyCallerImpl
- java.lang.Object
-
- com.atlassian.bamboo.build.LimitedConcurrencyCallerImpl
-
- All Implemented Interfaces:
LimitedConcurrencyCaller
public class LimitedConcurrencyCallerImpl extends Object implements LimitedConcurrencyCaller
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.build.LimitedConcurrencyCaller
LimitedConcurrencyCaller.Callable<T,E extends Exception>
-
-
Constructor Summary
Constructors Constructor Description LimitedConcurrencyCallerImpl(int numberOfThreads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,E extends Exception>
Texecute(LimitedConcurrencyCaller.Callable<T,E> callable)
Execute code provided as Callable
-
-
-
Method Detail
-
execute
public <T,E extends Exception> T execute(LimitedConcurrencyCaller.Callable<T,E> callable) throws E extends Exception
Description copied from interface:LimitedConcurrencyCaller
Execute code provided as Callable- Specified by:
execute
in interfaceLimitedConcurrencyCaller
- Type Parameters:
T
- value returned from provided codeE
- exception that might be thrown in provided code- Returns:
- Throws:
E
E extends Exception
-
-