ConsecutiveExecutor.java

net.minecraft.util.thread.ConsecutiveExecutor

信息

  • 全限定名:net.minecraft.util.thread.ConsecutiveExecutor
  • 类型:public class
  • 包:net.minecraft.util.thread
  • 源码路径:src/main/java/net/minecraft/util/thread/ConsecutiveExecutor.java
  • 起始行号:L6
  • 继承:AbstractConsecutiveExecutor
  • 职责:

    TODO

字段/常量

内部类/嵌套类型

构造器

public ConsecutiveExecutor(Executor dispatcher, String name) @ L7

  • 构造器名:ConsecutiveExecutor
  • 源码定位:L7
  • 修饰符:public

参数:

  • dispatcher: Executor
  • name: String

说明:

TODO

方法

下面的方法块按源码顺序生成。

public Runnable wrapRunnable(Runnable runnable) @ L11

  • 方法名:wrapRunnable
  • 源码定位:L11
  • 返回类型:Runnable
  • 修饰符:public

参数:

  • runnable: Runnable

说明:

TODO

代码

public class ConsecutiveExecutor extends AbstractConsecutiveExecutor<Runnable> {
    public ConsecutiveExecutor(Executor dispatcher, String name) {
        super(new StrictQueue.QueueStrictQueue(new ConcurrentLinkedQueue<>()), dispatcher, name);
    }
 
    @Override
    public Runnable wrapRunnable(Runnable runnable) {
        return runnable;
    }
}

引用的其他类