类 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
-
字段概要
字段修饰符和类型字段说明private static final int
private final Executor
private static final org.slf4j.Logger
private final String
private final StrictQueue<? super T,
? extends Runnable> private static final int
private final AtomicInteger
-
构造器概要
构造器构造器说明ProcessorMailbox
(StrictQueue<? super T, ? extends Runnable> pQueue, Executor pDispatcher, String pName) -
方法概要
修饰符和类型方法说明private boolean
void
close()
static ProcessorMailbox<Runnable>
boolean
hasWork()
name()
private boolean
pollTask()
private int
pollUntil
(it.unimi.dsi.fastutil.ints.Int2BooleanFunction pContinuePolling) private void
void
run()
void
runAll()
private void
private boolean
private boolean
int
size()
void
toString()
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.util.thread.ProcessorHandle
ask, askEither
-
字段详细资料
-
构造器详细资料
-
ProcessorMailbox
public ProcessorMailbox(StrictQueue<? super T, ? extends Runnable> pQueue, Executor pDispatcher, String pName)
-
-
方法详细资料
-
create
-
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() -
runAll
public void runAll() -
tell
- 指定者:
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
-
name
- 指定者:
name
在接口中ProcessorHandle<T>
-
profiledMetrics
- 指定者:
profiledMetrics
在接口中ProfilerMeasured
-