Search Results for

Show / Hide Table of Contents

# Interface IAtomicSequence

Represents a distributed atomic sequence of numbers.

###### Namespace: Apache.Ignite.Core.DataStructures

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public interface IAtomicSequence

### Properties

#### BatchSize

Gets local batch size for this atomic sequence.

##### Declaration

    int BatchSize { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 | Sequence batch size.

#### IsClosed

Determines whether this instance was removed from cache.

##### Declaration

    bool IsClosed { get; }

##### Property Value

Type | Description
--- | ---
System.Boolean | True if this atomic was removed from cache; otherwise, false.

#### Name

Gets the name of this atomic sequence.

##### Declaration

    string Name { get; }

##### Property Value

Type | Description
--- | ---
System.String | Name of this atomic sequence.

### 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 | The new value of the atomic sequence.

#### Close()

Closes this instance.

##### Declaration

    void Close()

#### Increment()

Increments current value and returns result.

##### Declaration

    long Increment()

##### Returns

Type | Description
--- | ---
System.Int64 | The new value of the atomic sequence.

#### Read()

Returns current value.

##### Declaration

    long Read()

##### Returns

Type | Description
--- | ---
System.Int64 | Current value of the atomic sequence.