Class ChunkTaskPriorityQueue<T>


  • public class ChunkTaskPriorityQueue<T>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private it.unimi.dsi.fastutil.longs.LongSet acquired  
      private int firstQueue  
      private int maxTasks  
      private java.lang.String name  
      static int PRIORITY_LEVEL_COUNT  
      private java.util.List<it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<java.util.List<java.util.Optional<T>>>> taskQueue  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChunkTaskPriorityQueue​(java.lang.String p_i50714_1_, int p_i50714_2_)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.Runnable acquire​(long p_219418_1_)  
      (package private) it.unimi.dsi.fastutil.longs.LongSet getAcquired()  
      java.util.stream.Stream<com.mojang.datafixers.util.Either<T,​java.lang.Runnable>> pop()  
      protected void release​(long p_219416_1_, boolean p_219416_3_)  
      protected void resortChunkTasks​(int p_219407_1_, ChunkPos p_219407_2_, int p_219407_3_)  
      protected void submit​(java.util.Optional<T> p_219412_1_, long p_219412_2_, int p_219412_4_)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • PRIORITY_LEVEL_COUNT

        public static final int PRIORITY_LEVEL_COUNT
      • taskQueue

        private final java.util.List<it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<java.util.List<java.util.Optional<T>>>> taskQueue
      • firstQueue

        private volatile int firstQueue
      • name

        private final java.lang.String name
      • acquired

        private final it.unimi.dsi.fastutil.longs.LongSet acquired
      • maxTasks

        private final int maxTasks
    • Constructor Detail

      • ChunkTaskPriorityQueue

        public ChunkTaskPriorityQueue​(java.lang.String p_i50714_1_,
                                      int p_i50714_2_)
    • Method Detail

      • resortChunkTasks

        protected void resortChunkTasks​(int p_219407_1_,
                                        ChunkPos p_219407_2_,
                                        int p_219407_3_)
      • submit

        protected void submit​(java.util.Optional<T> p_219412_1_,
                              long p_219412_2_,
                              int p_219412_4_)
      • release

        protected void release​(long p_219416_1_,
                               boolean p_219416_3_)
      • acquire

        private java.lang.Runnable acquire​(long p_219418_1_)
      • pop

        @Nullable
        public java.util.stream.Stream<com.mojang.datafixers.util.Either<T,​java.lang.Runnable>> pop()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getAcquired

        it.unimi.dsi.fastutil.longs.LongSet getAcquired()