public void cannel() { if (canneled) { return; } if (null != executor && null != taskWrapper) { executor.removeTask(taskWrapper); executor = null; } canneled = true; }
public PeriodicTaskHandleImpl(TaskWrapper taskWrapper, ScheduleExecutor executor) { this.taskWrapper = taskWrapper; this.executor = executor; }
public Worker(ScheduleExecutor executor) { this.executor = executor; }