Class RecoveryIterator

java.lang.Object
org.infinispan.hotrod.impl.transaction.recovery.RecoveryIterator

public class RecoveryIterator extends Object
The iterator return when XAResource.recover(int) is invoked with XAResource.TMSTARTRSCAN.

Initially, it returns the in-doubt transaction stored locally while it sends the request to the server. When XAResource.recover(int) is invoked with XAResource.TMENDRSCAN, it waits for the server reply and return the remaining in-doubt transactions.

Since:
14.0
  • Method Details

    • next

      public Xid[] next()
    • finish

      public void finish(long timeout)