Interface KeyPartitioningStrategy.PartitionAwareKey

  • All Known Implementing Classes:
    SimplePartitionKey
    Enclosing interface:
    KeyPartitioningStrategy

    public static interface KeyPartitioningStrategy.PartitionAwareKey
    PartitionAwareKey is a well-known interface that should be respected by KeyPartitioningStrategy implementations.

    Naturally, since a PartitionAwareKey implementation explicitly dictates its partition, it should not define any key-association.

    Since:
    Coherence 3.7
    • Method Detail

      • getPartitionId

        int getPartitionId()
        Return the partition id that this key should be associated with.
        Returns:
        the partition id that this key should be associated with