Merge branch 'opengoofy:develop' into develop

pull/1412/head
GRL-bxy 2 years ago committed by GitHub
commit 875ff8fac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -78,6 +78,20 @@ public class AdaptedThreadPoolDestroyPostProcessor implements DestructionAwareBe
.ifPresent(executorHolder -> destroyAdaptedThreadPoolExecutor(beanName, executorHolder)); .ifPresent(executorHolder -> destroyAdaptedThreadPoolExecutor(beanName, executorHolder));
} }
@Override
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
// forked default implementation from spring-beans-5.1.14.RELEASE.jar
// org.springframework.beans.factory.config.BeanPostProcessor#postProcessBeforeInitialization
return bean;
}
@Override
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
// forked default implementation from spring-beans-5.1.14.RELEASE.jar
// org.springframework.beans.factory.config.BeanPostProcessor#postProcessAfterInitialization
return bean;
}
private void destroyAdaptedThreadPoolExecutor(String beanName, ThreadPoolExecutorHolder executorHolder) { private void destroyAdaptedThreadPoolExecutor(String beanName, ThreadPoolExecutorHolder executorHolder) {
try { try {
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {

@ -47,8 +47,8 @@ public class Lease<T> {
public Lease(T r) { public Lease(T r) {
holder = r; holder = r;
registrationTimestamp = System.currentTimeMillis(); registrationTimestamp = System.currentTimeMillis();
lastUpdateTimestamp = registrationTimestamp;
duration = DEFAULT_DURATION_IN_SECS; duration = DEFAULT_DURATION_IN_SECS;
lastUpdateTimestamp = registrationTimestamp + duration;
} }
public void renew() { public void renew() {

Loading…
Cancel
Save