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
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
| Name | Description |
|---|---|
| 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>>, bool, object) | Subscribes to events. |
| UnsubscribeAsync(Guid) | Unsubscribe from events. |