![JAR search and dependency download from the Maven repository](/logo.png)
com.jchanghong.core.thread.FinalizableDelegatedExecutorService Maven / Gradle / Ivy
The newest version!
package com.jchanghong.core.thread;
import java.util.concurrent.ExecutorService;
/**
* 保证ExecutorService在对象回收时正常结束
*
* @author loolly
*/
public class FinalizableDelegatedExecutorService extends DelegatedExecutorService {
FinalizableDelegatedExecutorService(ExecutorService executor) {
super(executor);
}
@Override
protected void finalize() {
super.shutdown();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy