Package org.xyou.xcommon.pool
Class XPool<V>
- java.lang.Object
-
- org.xyou.xcommon.base.XBaseObject
-
- org.xyou.xcommon.pool.XPool<V>
-
- All Implemented Interfaces:
java.io.Serializable
public final class XPool<V> extends XBaseObject
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XPool(int sizeMax)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEmpty()booleanisFull()booleanoffer(V data)intsize()XPoolItem<V>take()java.util.List<XPoolItem<V>>take(int numItem)java.util.List<V>unload(int numItem)-
Methods inherited from class org.xyou.xcommon.base.XBaseObject
canEqual, equals, hashCode, toString
-
-