Class DefaultScheduledTask<V>

  • All Implemented Interfaces:
    IScheduledTask<V>, ITask<V>, java.util.concurrent.Callable<V>, java.util.concurrent.Future<V>

    @Deprecated
    @ScheduledForRemoval
    public final class DefaultScheduledTask<V>
    extends java.lang.Object
    implements IScheduledTask<V>
    Deprecated.
    • Constructor Detail

      • DefaultScheduledTask

        public DefaultScheduledTask​(java.util.concurrent.Callable<V> callable,
                                    long delay,
                                    long repeat,
                                    long repeats,
                                    java.util.concurrent.TimeUnit timeUnit)
        Deprecated.
    • Method Detail

      • getValue

        public V getValue()
        Deprecated.
      • isWait

        public boolean isWait()
        Deprecated.
      • setWait

        public void setWait​(boolean wait)
        Deprecated.
      • isDone

        public boolean isDone()
        Deprecated.
        Specified by:
        isDone in interface java.util.concurrent.Future<V>
      • setDone

        public void setDone​(boolean done)
        Deprecated.
      • isCancelled

        public boolean isCancelled()
        Deprecated.
        Specified by:
        isCancelled in interface java.util.concurrent.Future<V>
      • setCancelled

        public void setCancelled​(boolean cancelled)
        Deprecated.
      • getDelay

        public long getDelay()
        Deprecated.
      • getRepeat

        public long getRepeat()
        Deprecated.
      • getRepeats

        public long getRepeats()
        Deprecated.
      • getCallable

        public java.util.concurrent.Callable<V> getCallable()
        Deprecated.
        Specified by:
        getCallable in interface ITask<V>
      • clearListeners

        @NotNull
        public @NotNull ITask<V> clearListeners()
        Deprecated.
        Specified by:
        clearListeners in interface ITask<V>
      • getDef

        public V getDef​(V def)
        Deprecated.
        Specified by:
        getDef in interface ITask<V>
      • get

        public V get​(long time,
                     java.util.concurrent.TimeUnit timeUnit,
                     V def)
        Deprecated.
        Specified by:
        get in interface ITask<V>
      • call

        public V call()
        Deprecated.
        Specified by:
        call in interface java.util.concurrent.Callable<V>
      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
        Deprecated.
        Specified by:
        cancel in interface java.util.concurrent.Future<V>
      • get

        public V get()
              throws java.lang.InterruptedException
        Deprecated.
        Specified by:
        get in interface java.util.concurrent.Future<V>
        Throws:
        java.lang.InterruptedException
      • get

        public V get​(long timeout,
                     @NotNull
                     @NotNull java.util.concurrent.TimeUnit unit)
              throws java.lang.InterruptedException
        Deprecated.
        Specified by:
        get in interface java.util.concurrent.Future<V>
        Throws:
        java.lang.InterruptedException