Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implemented by

Index

Methods

destroy

  • destroy(): Promise<void>

getName

  • getName(): string

getPartitionKey

  • getPartitionKey(): string

getServiceName

  • getServiceName(): string

newId

  • newId(): Promise<Long>
  • Generates and returns a cluster-wide unique ID.

    This method goes to a random member and gets a batch of IDs, which will then be returned locally for limited time. The pre-fetch size and the validity time can be configured, see FlakeIdGeneratorConfig.

    Note: Values returned from this method may not be strictly ordered.

    throws

    HazelcastError if node ID for all members in the cluster is out of valid range. See "Node ID overflow" note above

    throws

    UnsupportedOperationError if the cluster version is below 3.10

    Returns Promise<Long>

    new cluster-wide unique ID

Generated using TypeDoc