public class AsyncActionExecutor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
corePoolSize |
protected java.util.concurrent.ExecutorService |
executorService |
protected long |
keepAliveTimeMillis |
protected int |
maximumPoolSize |
protected int |
queueCapacity |
Constructor and Description |
---|
AsyncActionExecutor() |
Modifier and Type | Method and Description |
---|---|
int |
getCorePoolSize() |
long |
getKeepAliveTimeMillis() |
int |
getMaximumPoolSize() |
int |
getQueueCapacity() |
void |
invoke(ActionRequest actionRequest)
Invokes an action asynchronously by submitting it to the thread pool.
|
void |
setCorePoolSize(int corePoolSize) |
void |
setKeepAliveTimeMillis(long keepAliveTimeMillis) |
void |
setMaximumPoolSize(int maximumPoolSize) |
void |
setQueueCapacity(int queueCapacity) |
void |
start() |
protected java.util.concurrent.ExecutorService executorService
protected int corePoolSize
protected int maximumPoolSize
protected long keepAliveTimeMillis
protected int queueCapacity
public void start()
public void invoke(ActionRequest actionRequest)
public int getCorePoolSize()
public void setCorePoolSize(int corePoolSize)
public int getMaximumPoolSize()
public void setMaximumPoolSize(int maximumPoolSize)
public long getKeepAliveTimeMillis()
public void setKeepAliveTimeMillis(long keepAliveTimeMillis)
public int getQueueCapacity()
public void setQueueCapacity(int queueCapacity)
Copyright © 2003-present Jodd Team