class TaskTimeoutAware extends TaskStatAware {

    @Override
    public int getOrder() {
        return AwareTypeEnum.TASK_TIMEOUT_AWARE.getOrder();
    }

    @Override
    public String getName() {
        return AwareTypeEnum.TASK_TIMEOUT_AWARE.getName();
    }

    @Override
    protected void refresh(TpExecutorProps props, ThreadPoolStatProvider statProvider) {<FILL_FUNCTION_BODY>}

    @Override
    public void execute(Executor executor, Runnable r) {
        if (TRUE_STR.equals(System.getProperty(DTP_EXECUTE_ENHANCED, TRUE_STR))) {
            Optional.ofNullable(statProviders.get(executor)).ifPresent(p -> p.startQueueTimeoutTask(r));
        }
    }

    @Override
    public void beforeExecute(Executor executor, Thread t, Runnable r) {
        Optional.ofNullable(statProviders.get(executor)).ifPresent(p -> {
            p.cancelQueueTimeoutTask(r);
            p.startRunTimeoutTask(t, r);
        });
    }

    @Override
    public void afterExecute(Executor executor, Runnable r, Throwable t) {
        Optional.ofNullable(statProviders.get(executor)).ifPresent(p -> p.cancelRunTimeoutTask(r));
    }

    @Override
    public void beforeReject(Runnable r, Executor executor) {
        Optional.ofNullable(statProviders.get(executor)).ifPresent(p -> p.cancelQueueTimeoutTask(r));
    }
}

        super.refresh(props, statProvider);
        if (Objects.nonNull(props)) {
            statProvider.setRunTimeout(props.getRunTimeout());
            statProvider.setQueueTimeout(props.getQueueTimeout());
            statProvider.setTryInterrupt(props.isTryInterrupt());
        }
    
<methods>public non-sealed void <init>() ,public void refresh(org.dromara.dynamictp.core.support.ExecutorWrapper, org.dromara.dynamictp.common.entity.TpExecutorProps) ,public void register(org.dromara.dynamictp.core.support.ExecutorWrapper) ,public void remove(org.dromara.dynamictp.core.support.ExecutorWrapper) <variables>protected final Map<java.util.concurrent.Executor,org.dromara.dynamictp.core.support.ThreadPoolStatProvider> statProviders