Search Results for

    Show / Hide Table of Contents

    Interface IAtomicLongClient

    Represents a distributed atomic long value.

    Use GetAtomicLong(String, Int64, Boolean) to get or create an instance.

    Namespace: Apache.Ignite.Core.Client.DataStructures
    Assembly: Apache.Ignite.Core.dll
    Syntax
    public interface IAtomicLongClient

    Properties

    Name

    Gets the name of this atomic long.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    System.String

    Name of this atomic long.

    Methods

    Add(Int64)

    Adds specified value to the current value and returns result.

    Declaration
    long Add(long value)
    Parameters
    Type Name Description
    System.Int64 value

    The value to add.

    Returns
    Type Description
    System.Int64

    Current value of the atomic long.

    Close()

    Closes this instance.

    Declaration
    void Close()

    CompareExchange(Int64, Int64)

    Compares current value with specified value for equality and, if they are equal, replaces current value.

    Declaration
    long CompareExchange(long value, long comparand)
    Parameters
    Type Name Description
    System.Int64 value

    The value to set.

    System.Int64 comparand

    The value that is compared to the current value.

    Returns
    Type Description
    System.Int64

    Original value of the atomic long.

    Decrement()

    Decrements current value and returns result.

    Declaration
    long Decrement()
    Returns
    Type Description
    System.Int64

    Current value of the atomic long.

    Exchange(Int64)

    Sets current value to a specified value and returns the original value.

    Declaration
    long Exchange(long value)
    Parameters
    Type Name Description
    System.Int64 value

    The value to set.

    Returns
    Type Description
    System.Int64

    Original value of the atomic long.

    Increment()

    Increments current value and returns result.

    Declaration
    long Increment()
    Returns
    Type Description
    System.Int64

    Current value of the atomic long.

    IsClosed()

    Determines whether this instance was removed from cache.

    Declaration
    bool IsClosed()
    Returns
    Type Description
    System.Boolean

    True if this atomic was removed from cache; otherwise, false.

    Read()

    Returns current value.

    Declaration
    long Read()
    Returns
    Type Description
    System.Int64

    Current value of the atomic long.

    In This Article
    Back to top © 2015 - 2019 The Apache Software Foundation