Package org.miaixz.bus.core.lang.thread
Class FinalizableDelegatedExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.miaixz.bus.core.lang.thread.DelegatedExecutorService
org.miaixz.bus.core.lang.thread.FinalizableDelegatedExecutorService
- All Implemented Interfaces:
AutoCloseable,Executor,ExecutorService
保证ExecutorService在对象回收时正常结束
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Methods inherited from class org.miaixz.bus.core.lang.thread.DelegatedExecutorService
awaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdownNow, submit, submit, submitMethods inherited from class java.util.concurrent.AbstractExecutorService
newTaskFor, newTaskForMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
close
-
Method Details
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceExecutorService- Overrides:
shutdownin classDelegatedExecutorService
-