All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jmatrix.async.ConcurrencyManager Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package net.jmatrix.async;

public interface ConcurrencyManager
{
   /**
    * getConcurrencyLimit returns the maximum number of concurrent
    * threads that can be executing for this service. Each service instance
    * returned from the {@link ServiceLocator#getService(Class)} can set
    * independent values for its concurrency limit. This includes separate
    * instances of the same underlying service retrieved in two separate calls
    * to getService()
    * 
    * @return the maximum number of concurrent threads that can be executing for
    *         this service
    */
   public int getConcurrencyLimit();

   /**
    * setConcurrencyLimit sets the maximum number of concurrent
    * threads that can be executing for this service. Each service instance
    * returned from the {@link ServiceLocator#getService(Class)} can set
    * independent values for its concurrency limit. This includes separate
    * instances of the same underlying service retrieved in two separate calls
    * to getService()
    * 
    * @return the maximum number of concurrent threads that can be executing for
    *         this service
    */
   public void setConcurrencyLimit(int limit);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy