类 ProcessorMailbox<T>

java.lang.Object
net.minecraft.util.thread.ProcessorMailbox<T>
所有已实现的接口:
AutoCloseable, Runnable, ProfilerMeasured, ProcessorHandle<T>

public class ProcessorMailbox<T> extends Object implements ProfilerMeasured, ProcessorHandle<T>, AutoCloseable, Runnable
  • 字段详细资料

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • CLOSED_BIT

      private static final int CLOSED_BIT
      另请参阅:
    • SCHEDULED_BIT

      private static final int SCHEDULED_BIT
      另请参阅:
    • status

      private final AtomicInteger status
    • queue

      private final StrictQueue<? super T,? extends Runnable> queue
    • dispatcher

      private final Executor dispatcher
    • name

      private final String name
  • 构造器详细资料

  • 方法详细资料

    • create

      public static ProcessorMailbox<Runnable> create(Executor pDispatcher, String pName)
    • setAsScheduled

      private boolean setAsScheduled()
    • setAsIdle

      private void setAsIdle()
    • canBeScheduled

      private boolean canBeScheduled()
    • close

      public void close()
      指定者:
      close 在接口中 AutoCloseable
      指定者:
      close 在接口中 ProcessorHandle<T>
    • shouldProcess

      private boolean shouldProcess()
    • pollTask

      private boolean pollTask()
    • run

      public void run()
      指定者:
      run 在接口中 Runnable
    • runAll

      public void runAll()
    • tell

      public void tell(T pTask)
      指定者:
      tell 在接口中 ProcessorHandle<T>
    • registerForExecution

      private void registerForExecution()
    • pollUntil

      private int pollUntil(it.unimi.dsi.fastutil.ints.Int2BooleanFunction pContinuePolling)
    • size

      public int size()
    • hasWork

      public boolean hasWork()
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • name

      public String name()
      指定者:
      name 在接口中 ProcessorHandle<T>
    • profiledMetrics

      public List<MetricSampler> profiledMetrics()
      指定者:
      profiledMetrics 在接口中 ProfilerMeasured