Package com.sun.xml.ws.util
Class Pool<T>
- java.lang.Object
-
- com.sun.xml.ws.util.Pool<T>
-
- Direct Known Subclasses:
Pool.Marshaller,Pool.TubePool,Pool.Unmarshaller
public abstract class Pool<T> extends Object
General-purpose object pool.In many parts of the runtime, we need to pool instances of objects that are expensive to create (such as JAXB objects, StAX parsers,
Tubeinstances.)This class provides a default implementation of such a pool. TODO: improve the implementation
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPool.MarshallerJAXBMarshallerpool.static classPool.TubePoolTubepool.static classPool.UnmarshallerJAXBMarshallerpool.
-
Constructor Summary
Constructors Constructor Description Pool()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Tcreate()Creates a new instance of object.voidrecycle(T t)Returns an object back to the pool.Ttake()Gets a new object from the pool.
-