Class GCVMThreadListIterator
java.lang.Object
com.ibm.j9ddr.vm29.j9.gc.GCBase
com.ibm.j9ddr.vm29.j9.gc.GCIterator
com.ibm.j9ddr.vm29.j9.gc.GCVMThreadListIterator
- All Implemented Interfaces:
SlotIterator
,Iterator
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected com.ibm.j9ddr.vm29.pointer.generated.J9VMThreadPointer
protected com.ibm.j9ddr.vm29.pointer.generated.J9VMThreadPointer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GCVMThreadListIterator
from()
Factory method to construct an appropriate vm thread list iterator.boolean
hasNext()
Returnstrue
if the iteration has more elements.com.ibm.j9ddr.vm29.pointer.generated.J9VMThreadPointer
next()
Returns the next element in the iteration.Methods declared in class com.ibm.j9ddr.vm29.j9.gc.GCBase
getExtensions, getJavaVM
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
initialVMThread
protected com.ibm.j9ddr.vm29.pointer.generated.J9VMThreadPointer initialVMThread -
currentVMThread
protected com.ibm.j9ddr.vm29.pointer.generated.J9VMThreadPointer currentVMThread -
consumedInitial
protected boolean consumedInitial
-
-
Constructor Details
-
GCVMThreadListIterator
- Throws:
CorruptDataException
-
-
Method Details
-
from
Factory method to construct an appropriate vm thread list iterator.- Type Parameters:
T
-- Parameters:
structure
- the J9JavaVM- Returns:
- an instance of GCVMThreadListIterator
- Throws:
CorruptDataException
-
hasNext
public boolean hasNext()Description copied from interface:java.util.Iterator
Returnstrue
if the iteration has more elements. (In other words, returnstrue
ifIterator.next()
would return an element rather than throwing an exception.)- Returns:
true
if the iteration has more elements
-
next
public com.ibm.j9ddr.vm29.pointer.generated.J9VMThreadPointer next()Description copied from interface:java.util.Iterator
Returns the next element in the iteration.- Returns:
- the next element in the iteration
-
nextAddress
-