Interface LimitedConcurrencyCaller

All Known Implementing Classes:
LimitedConcurrencyCallerImpl

public interface LimitedConcurrencyCaller
LimitedConcurrencyCaller allows limit concurrent calls on critical resources as database connections.
  • Method Details

    • execute

      <T, E extends Exception> T execute(LimitedConcurrencyCaller.Callable<T,E> callable) throws E
      Execute code provided as Callable<T, E>
      Type Parameters:
      T - value returned from provided code
      E - exception that might be thrown in provided code
      Parameters:
      callable -
      Returns:
      Throws:
      E