类 AbstractConsecutiveExecutor<T extends Runnable>
java.lang.Object
net.minecraft.util.thread.AbstractConsecutiveExecutor<T>
- 所有已实现的接口:
AutoCloseable
,Runnable
,ProfilerMeasured
,TaskScheduler<T>
public abstract class AbstractConsecutiveExecutor<T extends Runnable>
extends Object
implements ProfilerMeasured, TaskScheduler<T>, Runnable
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final Executor
private static final org.slf4j.Logger
private final String
private final StrictQueue
<T> private final AtomicReference
<AbstractConsecutiveExecutor.Status> -
构造器概要
构造器 -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.util.thread.TaskScheduler
scheduleWithResult, wrapRunnable
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
status
-
queue
-
executor
-
name
-
-
构造器详细资料
-
AbstractConsecutiveExecutor
-
-
方法详细资料
-
canBeScheduled
private boolean canBeScheduled() -
close
public void close()- 指定者:
close
在接口中AutoCloseable
- 指定者:
close
在接口中TaskScheduler<T extends Runnable>
-
pollTask
private boolean pollTask() -
run
public void run() -
runAll
public void runAll() -
schedule
- 指定者:
schedule
在接口中TaskScheduler<T extends Runnable>
-
registerForExecution
private void registerForExecution() -
size
public int size() -
hasWork
public boolean hasWork() -
toString
-
name
- 指定者:
name
在接口中TaskScheduler<T extends Runnable>
-
profiledMetrics
- 指定者:
profiledMetrics
在接口中ProfilerMeasured
-
setRunning
private boolean setRunning() -
setSleeping
private void setSleeping() -
isRunning
private boolean isRunning() -
isClosed
private boolean isClosed()
-