public interface SpacePartition extends Iterable<SpaceInstance>
SpaceInstance
s that form the partition.Modifier and Type | Method and Description |
---|---|
SpaceInstance |
getBackup()
Returns the (first) backup space instance,
null if currently there is no backup. |
SpaceInstance[] |
getInstances()
Returns all the space instances that form the partition.
|
int |
getPartitionId()
Returns the partition id (starting from 0).
|
SpaceInstance |
getPrimary()
Returns the primary space instance,
null if currently there is no primary. |
Space |
getSpace()
Returns the Space this Space Partition is part of.
|
forEach, iterator, spliterator
int getPartitionId()
SpaceInstance.getInstanceId()
starts from 1.SpaceInstance[] getInstances()
Space getSpace()
SpaceInstance getPrimary()
null
if currently there is no primary.SpaceInstance getBackup()
null
if currently there is no backup.Copyright © GigaSpaces.