Interface PartitionAwareBackingMap

    • Method Detail

      • getBackingMapManager

        BackingMapManager getBackingMapManager()
        Obtain the BackingMapManager that this PartitionAwareBackingMap uses to instantiate and release backing maps.
        Returns:
        the BackingMapManager
      • getName

        String getName()
        Determine the name of the cache for which this PartitionAwareBackingMap exists.
        Returns:
        the cache name
      • createPartition

        void createPartition​(int nPid)
        Add a partition to the PartitionAwareBackingMap.
        Parameters:
        nPid - the partition id that the PartitionAwareBackingMap will be responsible for, starting at this instant
      • destroyPartition

        void destroyPartition​(int nPid)
        Remove a partition from the PartitionAwareBackingMap.
        Parameters:
        nPid - the partition id that the PartitionAwareBackingMap will no longer be responsible for, starting at this instant
      • getPartitionMap

        Map getPartitionMap​(int nPid)
        Obtain a Map view for the data in a specific partition.
        Parameters:
        nPid - the partition ID
        Returns:
        the backing map (or null if that partition is not owned)
      • getPartitionMap

        Map getPartitionMap​(PartitionSet partitions)
        Obtain a Map view for the data in a specific set of partitions.
        Parameters:
        partitions - the masking PartitionSet
        Returns:
        a read-only view into a subset of backing maps