com.atlassian.bamboo.build
Class LimitedConcurrencyCallerImpl

java.lang.Object
  extended by com.atlassian.bamboo.build.LimitedConcurrencyCallerImpl
All Implemented Interfaces:
LimitedConcurrencyCaller

public class LimitedConcurrencyCallerImpl
extends java.lang.Object
implements LimitedConcurrencyCaller


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.build.LimitedConcurrencyCaller
LimitedConcurrencyCaller.Callable<T,E extends java.lang.Exception>
 
Constructor Summary
LimitedConcurrencyCallerImpl(int numberOfThreads)
           
 
Method Summary
<T,E extends java.lang.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 java.lang.Exception> T execute(LimitedConcurrencyCaller.Callable<T,E> callable)
          throws E extends java.lang.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 java.lang.Exception


Copyright © 2011 Atlassian. All Rights Reserved.