com.atlassian.bamboo.build
Class LimitedConcurrencyCallerImpl

java.lang.Object
  extended by 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
LimitedConcurrencyCallerImpl(int numberOfThreads)
           
 
Method Summary
<T,E extends Exception>
T
execute(LimitedConcurrencyCaller.Callable<T,E> callable)
          Execute code provided as Callable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimitedConcurrencyCallerImpl

public LimitedConcurrencyCallerImpl(int numberOfThreads)
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 interface LimitedConcurrencyCaller
Type Parameters:
T - value returned from provided code
E - exception that might be thrown in provided code
Returns:
Throws:
E
E extends Exception


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.