Package org.xyou.xcommon.thread
Class XThreadPool
- java.lang.Object
-
- org.xyou.xcommon.base.XBaseObject
-
- org.xyou.xcommon.thread.XThreadPool
-
- All Implemented Interfaces:
java.io.Serializable
public final class XThreadPool extends XBaseObject
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XThreadPool(java.lang.Integer numThread, java.lang.Integer sizeQueueMax)XThreadPool(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleangetIsProfiler()java.lang.StringgetName()java.lang.IntegergetNumThread()java.lang.IntegergetSizeQueueMax()booleanshutdown()booleanshutdown(long msWait)intsizeQueue()booleansubmit(java.lang.Runnable func)-
Methods inherited from class org.xyou.xcommon.base.XBaseObject
canEqual, equals, hashCode, toString
-
-
-
-
Method Detail
-
sizeQueue
public int sizeQueue()
-
submit
public boolean submit(java.lang.Runnable func)
-
shutdown
public boolean shutdown()
-
shutdown
public boolean shutdown(long msWait)
-
getName
public java.lang.String getName()
-
getNumThread
public java.lang.Integer getNumThread()
-
getSizeQueueMax
public java.lang.Integer getSizeQueueMax()
-
getIsProfiler
public java.lang.Boolean getIsProfiler()
-
-