Class TaskConsumer<T>

  • All Implemented Interfaces:
    AConsumer<T>, java.util.function.Consumer<T>

    public abstract class TaskConsumer<T>
    extends java.lang.Object
    implements AConsumer<T>
    • Field Summary

      • Fields inherited from interface io.aether.utils.interfaces.AConsumer

        EMPTY
    • Constructor Summary

      Constructors 
      Constructor Description
      TaskConsumer()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(T t)  
      void accept2​(T v)  
      void cancel()  
      protected void cancelTask()  
      boolean isExecuted()  
      protected abstract void runTask​(T value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.aether.utils.interfaces.AConsumer

        weak
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

      • TaskConsumer

        public TaskConsumer()
    • Method Detail

      • accept

        public void accept​(T t)
        Specified by:
        accept in interface AConsumer<T>
        Specified by:
        accept in interface java.util.function.Consumer<T>
      • isExecuted

        public boolean isExecuted()
      • accept2

        public final void accept2​(T v)
        Specified by:
        accept2 in interface AConsumer<T>
      • cancel

        public final void cancel()
      • runTask

        protected abstract void runTask​(T value)
      • cancelTask

        protected void cancelTask()