.NET Client Documentation
5.1.1
Search Results for

    Show / Hide Table of Contents

    IHCollection<T> Interface

    Namespace: Hazelcast.DistributedObjects
    Assembly: Hazelcast.Net.dll

    Defines a concurrent, distributed, and listenable collection.

    public interface IHCollection<T> : IDistributedObject, IAsyncDisposable, IAsyncEnumerable<T>
    Inherited Members
    IDistributedObject.ServiceName
    IDistributedObject.Name
    IDistributedObject.PartitionKey
    IDistributedObject.DestroyAsync()
    IAsyncDisposable.DisposeAsync()
    IAsyncEnumerable<T>.GetAsyncEnumerator(CancellationToken)
    Type Parameters
    T

    The type of the items in the collection

    Remarks

    This is not a partitioned data-structure. Entire contents is stored on a single machine (and in the backup). It will not scale by adding more members to the cluster.

    Methods

    AddAll<TItem>(ICollection<TItem>)

    Adds all.

    AddAsync(T)

    Adds an item to the collection.

    ClearAsync()

    Clears the collection.

    ContainsAllAsync<TItem>(ICollection<TItem>)

    Determines whether this collection contains all of the elements in the specified collection.

    ContainsAsync(T)

    Determines whether the collection contains an item.

    GetAllAsync()

    Gets the collection items.

    GetSizeAsync()

    Gets the number of items in the collection.

    IsEmptyAsync()

    Determines whether this instance is empty.

    RemoveAllAsync<TItem>(ICollection<TItem>)

    Removes all of the elements in the specified collection from this collection.

    RemoveAsync(T)

    Removes an item from the collection.

    RetainAllAsync<TItem>(ICollection<TItem>)

    Retains only the elements in this collection that are contained in the specified collection.

    SubscribeAsync(Action<CollectionItemEventHandlers<T>>, Boolean, Object)

    Subscribes to events.

    UnsubscribeAsync(Guid)

    Unsubscribe from events.

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