public class AdaptedThreadPoolDestroyPostProcessor extends Object implements org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
Adapted thread pool destroy post processor.
The processor is used to destroy the internal DynamicThreadPoolExecutor instance
in the instance adapted by DynamicThreadPoolAdapter in the spring context.
DynamicThreadPoolAdapter| 构造器和说明 |
|---|
AdaptedThreadPoolDestroyPostProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
postProcessBeforeDestruction(Object bean,
String beanName)
If the internal
DynamicThreadPoolExecutor instance in the adapted bean is not managed by spring,
call its DynamicThreadPoolExecutor.destroy() directly. |
boolean |
requiresDestruction(Object bean)
If
DynamicThreadPoolAdapterChoose.match(java.lang.Object) method returns true,
try to destroy its internal DynamicThreadPoolExecutor instance. |
public boolean requiresDestruction(Object bean)
DynamicThreadPoolAdapterChoose.match(java.lang.Object) method returns true,
try to destroy its internal DynamicThreadPoolExecutor instance.requiresDestruction 在接口中 org.springframework.beans.factory.config.DestructionAwareBeanPostProcessorbean - the bean instance to checktrue if DynamicThreadPoolAdapterChoose.match(java.lang.Object) method returns true, false otherwiseDynamicThreadPoolAdapterChoose.match(java.lang.Object)public void postProcessBeforeDestruction(Object bean, String beanName) throws org.springframework.beans.BeansException
DynamicThreadPoolExecutor instance in the adapted bean is not managed by spring,
call its DynamicThreadPoolExecutor.destroy() directly.postProcessBeforeDestruction 在接口中 org.springframework.beans.factory.config.DestructionAwareBeanPostProcessorbean - the bean instance to be destroyedbeanName - the name of the beanorg.springframework.beans.BeansException - in case of errorsDynamicThreadPoolExecutor.destroy()Copyright © 2023. All rights reserved.