Class TaskScheduler


  • @Deprecated
    @UnsafeClass
    public class TaskScheduler
    extends java.lang.Object
    Deprecated.
    This class, will be removed in the future, and exchanged for a new TaskScheduler with the support of the ITask class.
    See Also:
    ITask, ITaskScheduler
    • Field Detail

      • THREAD_GROUP_ID_LONG

        private static final java.util.concurrent.atomic.AtomicLong THREAD_GROUP_ID_LONG
        Deprecated.
      • threadGroup

        protected final java.lang.ThreadGroup threadGroup
        Deprecated.
      • threadId

        protected final java.util.concurrent.atomic.AtomicLong threadId
        Deprecated.
      • name

        protected final java.lang.String name
        Deprecated.
      • sleepThreadSwitch

        protected final long sleepThreadSwitch
        Deprecated.
      • dynamicWorkerCount

        protected final boolean dynamicWorkerCount
        Deprecated.
      • threadLifeMillis

        protected final long threadLifeMillis
        Deprecated.
      • maxThreads

        protected int maxThreads
        Deprecated.
      • taskEntries

        protected java.util.Deque<TaskEntry<?>> taskEntries
        Deprecated.
    • Constructor Detail

      • TaskScheduler

        public TaskScheduler()
        Deprecated.
      • TaskScheduler

        public TaskScheduler​(long sleepThreadSwitch)
        Deprecated.
      • TaskScheduler

        public TaskScheduler​(java.util.Collection<TaskEntry<?>> entries)
        Deprecated.
      • TaskScheduler

        public TaskScheduler​(java.util.Collection<TaskEntry<?>> entries,
                             long sleepThreadSwitch)
        Deprecated.
      • TaskScheduler

        public TaskScheduler​(int maxThreads,
                             long sleepThreadSwitch)
        Deprecated.
      • TaskScheduler

        public TaskScheduler​(int maxThreads)
        Deprecated.
      • TaskScheduler

        public TaskScheduler​(int maxThreads,
                             boolean dynamicWorkerCount)
        Deprecated.
      • TaskScheduler

        public TaskScheduler​(int maxThreads,
                             java.util.Collection<TaskEntry<?>> entries)
        Deprecated.
      • TaskScheduler

        public TaskScheduler​(int maxThreads,
                             java.util.Collection<TaskEntry<?>> entries,
                             boolean dynamicWorkerCount)
        Deprecated.
      • TaskScheduler

        public TaskScheduler​(int maxThreads,
                             java.util.Collection<TaskEntry<?>> entries,
                             long sleepThreadSwitch)
        Deprecated.
      • TaskScheduler

        public TaskScheduler​(int maxThreads,
                             java.util.Collection<TaskEntry<?>> entries,
                             long sleepThreadSwitch,
                             boolean dynamicThreadCount)
        Deprecated.
      • TaskScheduler

        public TaskScheduler​(int maxThreads,
                             java.util.Collection<TaskEntry<?>> entries,
                             long sleepThreadSwitch,
                             boolean dynamicThreadCount,
                             long threadLifeMillis)
        Deprecated.
    • Method Detail

      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        java.util.Date timeout)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        java.time.LocalDate localDate,
                                                        java.time.LocalTime localTime)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        java.time.LocalDateTime localDateTime)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        java.time.ZonedDateTime zonedDateTime)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        java.time.Instant instant)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        java.time.LocalDate localDate,
                                                        java.time.LocalTime localTime)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        java.time.LocalDateTime localDateTime)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        java.time.LocalDateTime localDateTime,
                                                        long repeats)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        java.time.LocalDate localDate,
                                                        java.time.LocalTime localTime,
                                                        long repeats)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        java.time.ZonedDateTime zonedDateTime)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        java.time.Instant instant)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        java.util.Date timeout)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        long delay)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        long delay,
                                                        java.util.concurrent.TimeUnit timeUnit)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        long delay)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        long delay,
                                                        java.util.concurrent.TimeUnit timeUnit)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        long delay,
                                                        long repeats)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        java.time.ZonedDateTime zonedDateTime,
                                                        long repeats)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        java.time.Instant instant,
                                                        long repeats)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        java.util.Date timeout,
                                                        long repeats)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        long delay,
                                                        java.util.concurrent.TimeUnit timeUnit,
                                                        long repeats)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        java.util.Date timeout,
                                                        long repeats)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        long delay,
                                                        long repeats)
        Deprecated.
      • schedule

        public TaskEntryFuture<java.lang.Void> schedule​(java.lang.Runnable runnable,
                                                        IVoidCallback<java.lang.Void> callback,
                                                        long delay,
                                                        java.util.concurrent.TimeUnit timeUnit,
                                                        long repeats)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               java.time.LocalDate localDate,
                                               java.time.LocalTime localTime)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               java.time.LocalDateTime localDateTime)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               java.time.ZonedDateTime zonedDateTime)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               java.time.Instant instant)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               long delay)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               long delay,
                                               java.util.concurrent.TimeUnit timeUnit)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               IVoidCallback<V> callback,
                                               java.time.LocalDate localDate,
                                               java.time.LocalTime localTime)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               IVoidCallback<V> callback,
                                               java.time.LocalDateTime localDateTime)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               IVoidCallback<V> callback,
                                               java.time.ZonedDateTime zonedDateTime)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               IVoidCallback<V> callback,
                                               java.time.Instant instant)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               IVoidCallback<V> callback,
                                               long delay)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               IVoidCallback<V> callback,
                                               long delay,
                                               java.util.concurrent.TimeUnit timeUnit)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               IVoidCallback<V> callback,
                                               long delay,
                                               long repeats)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               IVoidCallback<V> callback,
                                               long delay,
                                               java.util.concurrent.TimeUnit timeUnit,
                                               long repeats)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               IVoidCallback<V> callback,
                                               java.time.LocalDate localDate,
                                               java.time.LocalTime localTime,
                                               long repeats)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               IVoidCallback<V> callback,
                                               java.time.LocalDateTime localDateTime,
                                               long repeats)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               IVoidCallback<V> callback,
                                               java.time.ZonedDateTime zonedDateTime,
                                               long repeats)
        Deprecated.
      • schedule

        public <V> TaskEntryFuture<V> schedule​(java.util.concurrent.Callable<V> callable,
                                               IVoidCallback<V> callback,
                                               java.time.Instant instant,
                                               long repeats)
        Deprecated.
      • schedule

        public <V> java.util.Collection<TaskEntryFuture<V>> schedule​(java.util.Collection<TaskEntry<V>> threadEntries)
        Deprecated.
      • newWorker

        protected void newWorker()
        Deprecated.
      • shutdown

        public java.util.Collection<TaskEntry<?>> shutdown()
        Deprecated.
      • chargeThreadLimit

        public TaskScheduler chargeThreadLimit​(short threads)
        Deprecated.
      • getCurrentThreadSize

        public int getCurrentThreadSize()
        Deprecated.
      • getMaxThreads

        public int getMaxThreads()
        Deprecated.
      • getThreadGroup

        public java.lang.ThreadGroup getThreadGroup()
        Deprecated.
      • getName

        public java.lang.String getName()
        Deprecated.
      • getThreadEntries

        public java.util.Deque<TaskEntry<?>> getThreadEntries()
        Deprecated.
      • checkEnoughThreads

        private void checkEnoughThreads()
        Deprecated.