Class PreparedTxIterator
- java.lang.Object
-
- org.infinispan.transaction.xa.recovery.PreparedTxIterator
-
- All Implemented Interfaces:
Iterator<org.infinispan.commons.tx.XidImpl[]>,RecoveryManager.RecoveryIterator
public class PreparedTxIterator extends Object implements RecoveryManager.RecoveryIterator
Default implementation for RecoveryIterator.- Since:
- 5.0
- Author:
- Mircea.Markus@jboss.com
-
-
Field Summary
-
Fields inherited from interface org.infinispan.transaction.xa.recovery.RecoveryManager.RecoveryIterator
NOTHING
-
-
Constructor Summary
Constructors Constructor Description PreparedTxIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(List<org.infinispan.commons.tx.XidImpl> xids)org.infinispan.commons.tx.XidImpl[]all()Exhaust the iterator.booleanhasNext()org.infinispan.commons.tx.XidImpl[]next()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public org.infinispan.commons.tx.XidImpl[] next()
-
add
public void add(List<org.infinispan.commons.tx.XidImpl> xids)
-
all
public org.infinispan.commons.tx.XidImpl[] all()
Description copied from interface:RecoveryManager.RecoveryIteratorExhaust the iterator. After this call,Iterator.hasNext()returns false.- Specified by:
allin interfaceRecoveryManager.RecoveryIterator
-
-