Retrieves information about the partition count, the partition owner or the partitionId of a key.

Hierarchy

  • PartitionService

Methods

  • Returns partition count of the connected cluster. If partition table is not fetched yet, this method returns 0.

    Returns

    the partition count

    Returns number

  • Computes the partition id for a given key.

    Returns

    the partition id.

    Throws

    ClientOfflineError if the partition table has not arrived yet.

    Throws

    HazelcastSerializationError if key cannot be serialized

    Parameters

    • key: any

    Returns number

  • Returns UUID of owner member for a given partition id.

    Returns

    UUID of the owner of the partition or undefined if a partition is not assigned yet

    Parameters

    • partitionId: number

      partition id

    Returns UUID

Generated using TypeDoc