Class SidedThreadGroup
- java.lang.Object
-
- java.lang.ThreadGroup
-
- net.minecraftforge.fml.common.thread.SidedThreadGroup
-
- All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler
,java.util.concurrent.ThreadFactory
public final class SidedThreadGroup extends java.lang.ThreadGroup implements java.util.concurrent.ThreadFactory
A thread group and factory combination which belongs to aLogicalSide
.
-
-
Field Summary
Fields Modifier and Type Field Description private LogicalSide
side
-
Constructor Summary
Constructors Constructor Description SidedThreadGroup(LogicalSide side)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogicalSide
getSide()
Gets the side this sided thread group belongs to.java.lang.Thread
newThread(java.lang.Runnable runnable)
-
Methods inherited from class java.lang.ThreadGroup
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString, uncaughtException
-
-
-
-
Field Detail
-
side
private final LogicalSide side
-
-
Constructor Detail
-
SidedThreadGroup
SidedThreadGroup(LogicalSide side)
-
-
Method Detail
-
getSide
public LogicalSide getSide()
Gets the side this sided thread group belongs to.- Returns:
- the side
-
newThread
public java.lang.Thread newThread(@Nonnull java.lang.Runnable runnable)
- Specified by:
newThread
in interfacejava.util.concurrent.ThreadFactory
-
-