Package com.atlassian.bamboo.build
Interface LimitedConcurrencyCaller
- All Known Implementing Classes:
LimitedConcurrencyCallerImpl
public interface LimitedConcurrencyCaller
LimitedConcurrencyCaller allows limit concurrent calls on critical resources as database connections.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
LimitedConcurrencyCaller.Callable<T,
E extends Exception> -
Method Summary
Modifier and TypeMethodDescription<T,
E extends Exception>
Texecute
(LimitedConcurrencyCaller.Callable<T, E> callable) Execute code provided as Callable<T, E>
-
Method Details
-
execute
Execute code provided as Callable<T, E>- Type Parameters:
T
- value returned from provided codeE
- exception that might be thrown in provided code- Parameters:
callable
-- Returns:
- Throws:
E
-