org.infinispan.transaction.xa.recovery
Class PreparedTxIterator

java.lang.Object
  extended by org.infinispan.transaction.xa.recovery.PreparedTxIterator
All Implemented Interfaces:
Iterator<Xid[]>, 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
PreparedTxIterator()
           
 
Method Summary
 void add(List<Xid> xids)
           
 Xid[] all()
          Exhaust the iterator.
 boolean hasNext()
           
 Xid[] next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreparedTxIterator

public PreparedTxIterator()
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Xid[]>

next

public Xid[] next()
Specified by:
next in interface Iterator<Xid[]>

add

public void add(List<Xid> xids)

all

public Xid[] all()
Description copied from interface: RecoveryManager.RecoveryIterator
Exhaust the iterator. After this call, Iterator.hasNext() returns false.

Specified by:
all in interface RecoveryManager.RecoveryIterator

remove

public void remove()
Specified by:
remove in interface Iterator<Xid[]>

-->

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.