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
static interface LimitedConcurrencyCaller.Callable<T,E extends java.lang.Exception>
           
 
Method Summary
<T,E extends java.lang.Exception>
T
execute(LimitedConcurrencyCaller.Callable<T,E> callable)
          Execute code provided as Callable
 

Method Detail

execute

<T,E extends java.lang.Exception> T execute(LimitedConcurrencyCaller.Callable<T,E> callable)
          throws E extends java.lang.Exception
Execute code provided as Callable

Type Parameters:
T - value returned from provided code
E - exception that might be thrown in provided code
Parameters:
callable -
Returns:
Throws:
E
E extends java.lang.Exception


Copyright © 2012 Atlassian. All Rights Reserved.