java.lang.Object
com.ibm.j9ddr.vm29.j9.Pool<StructType>
- Direct Known Subclasses:
Pool_29_V0
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
protected static final Logger
protected com.ibm.j9ddr.vm29.pointer.generated.J9PoolPointer
protected Class<StructType>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract long
capacity()
Returns the total capacity of a poolfromJ9Pool
(com.ibm.j9ddr.vm29.pointer.generated.J9PoolPointer structure, Class<T> structType) Factory method to construct an appropriate pool handler.fromJ9Pool
(com.ibm.j9ddr.vm29.pointer.generated.J9PoolPointer structure, Class<T> structType, boolean isInline) abstract boolean
includesElement
(StructType anElement) See if an element is currently allocated from a pool.abstract SlotIterator<StructType>
iterator()
Returns an iterator over the elements in the poolabstract long
Returns the number of elements in a given pool.
-
Field Details
-
pool
protected com.ibm.j9ddr.vm29.pointer.generated.J9PoolPointer pool -
structType
-
elementSize
protected long elementSize -
logger
-
-
Constructor Details
-
Pool
protected Pool(com.ibm.j9ddr.vm29.pointer.generated.J9PoolPointer structure, Class<T> structType) throws CorruptDataException - Throws:
CorruptDataException
-
-
Method Details
-
fromJ9Pool
public static <T extends DataType> Pool<T> fromJ9Pool(com.ibm.j9ddr.vm29.pointer.generated.J9PoolPointer structure, Class<T> structType) throws CorruptDataException Factory method to construct an appropriate pool handler.- Type Parameters:
T
-- Parameters:
structure
- the J9Pool structure to use- Returns:
- an instance of Pool
- Throws:
CorruptDataException
-
fromJ9Pool
public static <T extends DataType> Pool<T> fromJ9Pool(com.ibm.j9ddr.vm29.pointer.generated.J9PoolPointer structure, Class<T> structType, boolean isInline) throws CorruptDataException - Throws:
CorruptDataException
-
numElements
public abstract long numElements()Returns the number of elements in a given pool.- Returns:
- the number of elements in the pool
-
capacity
public abstract long capacity()Returns the total capacity of a pool- Returns:
- the capacity of the pool
-
includesElement
See if an element is currently allocated from a pool.- Returns:
- boolean - true if the element is allocated, false otherwise
-
iterator
Returns an iterator over the elements in the pool- Returns:
- an Iterator
-