public class TxnLogProposalIterator extends Object implements Iterator<Leader.Proposal>
Modifier and Type | Field and Description |
---|---|
static TxnLogProposalIterator |
EMPTY_ITERATOR |
Constructor and Description |
---|
TxnLogProposalIterator(TxnLog.TxnIterator itr) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the files and release the resources which are used for iterating
transaction records
|
boolean |
hasNext() |
Leader.Proposal |
next()
Proposal returned by this iterator has request part set to null, since
it is not used for follower sync-up.
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public static final TxnLogProposalIterator EMPTY_ITERATOR
public TxnLogProposalIterator(TxnLog.TxnIterator itr)
public boolean hasNext()
hasNext
in interface Iterator<Leader.Proposal>
public Leader.Proposal next()
next
in interface Iterator<Leader.Proposal>
public void remove()
remove
in interface Iterator<Leader.Proposal>
public void close()
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.