类 BlockableEventLoop<R extends Runnable>
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<R>
- 所有已实现的接口:
AutoCloseable
,Executor
,ProfilerMeasured
,TaskScheduler<R>
public abstract class BlockableEventLoop<R extends Runnable>
extends Object
implements ProfilerMeasured, TaskScheduler<R>, Executor
-
字段概要
字段修饰符和类型字段说明static final long
private int
private static final org.slf4j.Logger
private final String
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
protected void
void
void
executeBlocking
(Runnable p_18710_) void
executeIfPossible
(Runnable p_201937_) int
protected abstract Thread
static boolean
isNonRecoverable
(Throwable p_361022_) boolean
void
managedBlock
(BooleanSupplier p_18702_) name()
boolean
pollTask()
protected void
void
protected boolean
protected abstract boolean
<V> CompletableFuture
<V> submitAsync
(Runnable p_18690_) protected void
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.util.thread.TaskScheduler
close, scheduleWithResult, wrapRunnable
-
字段详细资料
-
BLOCK_TIME_NANOS
public static final long BLOCK_TIME_NANOS- 另请参阅:
-
name
-
LOGGER
private static final org.slf4j.Logger LOGGER -
pendingRunnables
-
blockingCount
private int blockingCount
-
-
构造器详细资料
-
BlockableEventLoop
-
-
方法详细资料
-
shouldRun
-
isSameThread
public boolean isSameThread() -
getRunningThread
-
scheduleExecutables
protected boolean scheduleExecutables() -
getPendingTasksCount
public int getPendingTasksCount() -
name
- 指定者:
name
在接口中TaskScheduler<R extends Runnable>
-
submit
-
submitAsync
-
submit
-
executeBlocking
-
schedule
- 指定者:
schedule
在接口中TaskScheduler<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
-
isNonRecoverable
-