| Package | Description |
|---|---|
| com.liferay.portal.kernel.concurrent | |
| com.liferay.portal.kernel.executor | |
| com.liferay.portal.kernel.messaging |
| Modifier and Type | Class and Description |
|---|---|
class |
AbortPolicy
Implements the same behavior as
ThreadPoolExecutor.AbortPolicy. |
class |
CallerRunsPolicy
Implements the same behavior as
ThreadPoolExecutor.CallerRunsPolicy. |
class |
DiscardOldestPolicy
Implements the same behavior as
ThreadPoolExecutor.DiscardOldestPolicy. |
class |
DiscardPolicy
Implements the same behavior as
ThreadPoolExecutor.DiscardPolicy. |
class |
DiscardWithCancelPolicy
Handles rejected tasks by canceling them immediately.
|
| Modifier and Type | Method and Description |
|---|---|
RejectedExecutionHandler |
ThreadPoolExecutor.getRejectedExecutionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
ThreadPoolExecutor.setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler) |
| Constructor and Description |
|---|
ThreadPoolExecutor(int corePoolSize,
int maxPoolSize,
long keepAliveTime,
TimeUnit timeUnit,
boolean allowCoreThreadTimeout,
int maxQueueSize,
RejectedExecutionHandler rejectedExecutionHandler,
ThreadFactory threadFactory,
ThreadPoolHandler threadPoolHandler) |
| Modifier and Type | Method and Description |
|---|---|
RejectedExecutionHandler |
PortalExecutorConfig.getRejectedExecutionHandler() |
| Constructor and Description |
|---|
PortalExecutorConfig(String name,
int corePoolSize,
int maxPoolSize,
long keepAliveTime,
TimeUnit timeUnit,
boolean allowCoreThreadTimeout,
int maxQueueSize,
RejectedExecutionHandler rejectedExecutionHandler,
ThreadPoolHandler threadPoolHandler,
int priority,
ClassLoader contextClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
protected RejectedExecutionHandler |
BaseAsyncDestination.createRejectionExecutionHandler() |
RejectedExecutionHandler |
DestinationConfiguration.getRejectedExecutionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
BaseAsyncDestination.setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler) |
void |
DestinationConfiguration.setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler) |