
net.jmatrix.async.ConcurrencyManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmutils Show documentation
Show all versions of jmutils Show documentation
PerfTrack and Async utilities.
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