public class ShutdownExecutorServicesOnUninstallEventHandler extends Object implements com.alipay.sofa.ark.spi.service.event.EventHandler<com.alipay.sofa.ark.spi.event.biz.BeforeBizRecycleEvent>
ShutdownExecutorServicesOnUninstallEventHandler class.
| Modifier and Type | Field and Description |
|---|---|
static String |
EXECUTOR_CLEANUP_TIMEOUT_SECONDS
Constant
EXECUTOR_CLEANUP_TIMEOUT_SECONDS="com.alipay.koupleless.executor.cleanup."{trunked} |
| Constructor and Description |
|---|
ShutdownExecutorServicesOnUninstallEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPriority() |
void |
handleEvent(com.alipay.sofa.ark.spi.event.biz.BeforeBizRecycleEvent event) |
static <T extends ExecutorService> |
manageExecutorService(T actualExecutorService)
manageExecutorService.
|
public static final String EXECUTOR_CLEANUP_TIMEOUT_SECONDS
EXECUTOR_CLEANUP_TIMEOUT_SECONDS="com.alipay.koupleless.executor.cleanup."{trunked}public ShutdownExecutorServicesOnUninstallEventHandler()
public static <T extends ExecutorService> T manageExecutorService(T actualExecutorService)
manageExecutorService.
T - a T classactualExecutorService - a T objectpublic void handleEvent(com.alipay.sofa.ark.spi.event.biz.BeforeBizRecycleEvent event)
handleEvent in interface com.alipay.sofa.ark.spi.service.event.EventHandler<com.alipay.sofa.ark.spi.event.biz.BeforeBizRecycleEvent>public int getPriority()
getPriority in interface com.alipay.sofa.ark.spi.service.PriorityOrderedCopyright © 2024. All rights reserved.