Click or drag to resize

PartitionSetNext Method

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Return an index of the first marked partition that is greater than or equal to the specified partition. If no such partition exists then -1 is returned. This method could be used to iterate over all marked partitions:
            for (int i = ps.Next(0); i >= 0; i = ps.Next(i+1))
                {
                // process partition
                }
            

Namespace:  Tangosol.Net.Partition
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public int Next(
	int nPartition
)

Parameters

nPartition
Type: SystemInt32
The partition to start checking from (inclusive).

Return Value

Type: Int32
The next marked partition, or -1 if no next marked partition exists in the set
Exceptions
ExceptionCondition
IndexOutOfRangeException If the specified partition is invalid.
See Also