public interface HotDeployToolKit extends PluginThreadFactory
限定符和类型 | 方法和说明 |
---|---|
void |
delayExecuteRecoverable(RecoverableTask task)
延迟执行的任务,如果插件还未运行,则等待运行后执行execute方法
|
void |
executeRecoverable(RecoverableTask task)
在上下文中执行一个可恢复的任务,在插件Stop时,会自动执行undo操作
该方法与插件内置监听的作用相似,可以用这个方法保证局部的正常关闭,用内置监听作为插件整体的入口和出口
|
newCachedThreadPool, newCachedThreadPool, newFixedThreadPool, newFixedThreadPool, newScheduledThreadPool, newScheduledThreadPool, newServerSocket, newServerSocket, newServerSocket, newServerSocket, newSingleThreadExecutor, newSingleThreadExecutor, newSingleThreadScheduledExecutor, newSingleThreadScheduledExecutor, newSocket, newSocket, newSocket, newSocket, newSocket, newTimer, newTimer, newTimer, newTimer, unconfigurableExecutorService, unconfigurableScheduledExecutorService
void executeRecoverable(RecoverableTask task)
void delayExecuteRecoverable(RecoverableTask task)