.NET Client Documentation
5.1.1
Search Results for

    Show / Hide Table of Contents

    GetNewIdAsync Method

    GetNewIdAsync()

    Gets a new cluster-wide unique identifier.

    Declaration
    ValueTask<long> GetNewIdAsync()
    Returns
    ValueTask<Int64>

    A Int64 value representing a cluster-wide unique identifier.

    Remarks

    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 via FlakeIdGeneratorOptions.

    Values returned from this method may not be strictly ordered.

    Exceptions
    HazelcastException

    If node ID for all members in the cluster is out of valid range.

    In This Article
    Back to top Copyright © 2010-2022 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.