接口的使用
cn.taketoday.core.task.TaskDecorator
使用TaskDecorator的程序包
程序包
说明
This package defines core TaskExecutor abstraction,
and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
Support classes for TaskExecutor abstraction.
-
cn.taketoday.core.task中TaskDecorator的使用
参数类型为TaskDecorator的cn.taketoday.core.task中的方法修饰符和类型方法说明final voidSimpleAsyncTaskExecutor.setTaskDecorator(TaskDecorator taskDecorator) Specify a customTaskDecoratorto be applied to anyRunnableabout to be executed. -
cn.taketoday.core.task.support中TaskDecorator的使用
修饰符和类型方法说明protected voidTaskExecutorAdapter.doExecute(Executor concurrentExecutor, TaskDecorator taskDecorator, Runnable runnable) Actually execute the givenRunnable(which may be a user-supplied task or a wrapper around a user-supplied task) with the given executor.final voidTaskExecutorAdapter.setTaskDecorator(TaskDecorator taskDecorator) Specify a customTaskDecoratorto be applied to anyRunnableabout to be executed.