Constructor and Description |
---|
ThreadDecorator() |
Modifier and Type | Method and Description |
---|---|
void |
acquireSemaphore(String serviceId) |
Object |
doDecorate(Request resuest,
DecoratorChain chain) |
int |
getMaxThreads() |
int |
getMaxWaitMillisForThread() |
void |
releaseSemaphore() |
void |
setMaxThreads(int maxThreads) |
void |
setMaxWaitMillisForThread(int maxWaitMillisForThread) |
public int getMaxThreads()
public void setMaxThreads(int maxThreads)
public int getMaxWaitMillisForThread()
public void setMaxWaitMillisForThread(int maxWaitMillisForThread)
public Object doDecorate(Request resuest, DecoratorChain chain) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException
doDecorate
in interface Decorator
InvocationTargetException
IllegalArgumentException
IllegalAccessException
public void acquireSemaphore(String serviceId) throws TimeoutException, InterruptedException
ClassNotFoundException
ProcessFailedException
TimeoutException
InterruptedException
public void releaseSemaphore()