类 BlockableEventLoop<R extends Runnable>
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<R>
- 所有已实现的接口:
AutoCloseable
,Executor
,ProfilerMeasured
,ProcessorHandle<R>
public abstract class BlockableEventLoop<R extends Runnable>
extends Object
implements ProfilerMeasured, ProcessorHandle<R>, Executor
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
protected void
void
void
executeBlocking
(Runnable pTask) void
executeIfPossible
(Runnable pTask) int
protected abstract Thread
boolean
void
managedBlock
(BooleanSupplier pIsDone) name()
boolean
pollTask()
protected void
protected boolean
protected abstract boolean
<V> CompletableFuture<V>
submitAsync
(Runnable pTask) void
protected void
protected abstract R
wrapRunnable
(Runnable pRunnable) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.util.thread.ProcessorHandle
ask, askEither, close
-
字段详细资料
-
name
-
LOGGER
private static final org.slf4j.Logger LOGGER -
pendingRunnables
-
blockingCount
private int blockingCount
-
-
构造器详细资料
-
BlockableEventLoop
-
-
方法详细资料
-
wrapRunnable
-
shouldRun
-
isSameThread
public boolean isSameThread() -
getRunningThread
-
scheduleExecutables
protected boolean scheduleExecutables() -
getPendingTasksCount
public int getPendingTasksCount() -
name
- 指定者:
name
在接口中ProcessorHandle<R extends Runnable>
-
submit
-
submitAsync
-
submit
-
executeBlocking
-
tell
- 指定者:
tell
在接口中ProcessorHandle<R extends Runnable>
-
execute
-
executeIfPossible
-
dropAllTasks
protected void dropAllTasks() -
runAllTasks
protected void runAllTasks() -
pollTask
public boolean pollTask() -
managedBlock
-
waitForTasks
protected void waitForTasks() -
doRunTask
-
profiledMetrics
- 指定者:
profiledMetrics
在接口中ProfilerMeasured
-