Package com.tangosol.net.partition
Interface VersionedPartitions.VersionedIterator
- All Superinterfaces:
Iterator<Long>
,VersionedPartitions.Iterator<Long>
- Enclosing interface:
VersionedPartitions
public static interface VersionedPartitions.VersionedIterator
extends VersionedPartitions.Iterator<Long>
An Iterator for partitions being tracked by a
VersionedPartitions
implementation that allows retrieval of partition and version.
This iterator allows for primitive types for partition and version to be
returned, as well as progression of this iterator via nextVersion()
or VersionedPartitions.Iterator.nextPartition()
.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Return the current version.long
Return the next version by progressing this iterator to the next element in this Iterator.Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
Methods inherited from interface com.tangosol.net.partition.VersionedPartitions.Iterator
getPartition, nextPartition
-
Method Details
-
getVersion
long getVersion()Return the current version.- Returns:
- the current version
-
nextVersion
long nextVersion()Return the next version by progressing this iterator to the next element in this Iterator.- Returns:
- the next version
-