コード例 #1
0
        public void cannel()
        {
            if (canneled)
            {
                return;
            }

            if (null != executor && null != taskWrapper)
            {
                executor.removeTask(taskWrapper);
                executor = null;
            }

            canneled = true;
        }
コード例 #2
0
 public PeriodicTaskHandleImpl(TaskWrapper taskWrapper, ScheduleExecutor executor)
 {
     this.taskWrapper = taskWrapper;
     this.executor    = executor;
 }
コード例 #3
0
 public Worker(ScheduleExecutor executor)
 {
     this.executor = executor;
 }