IHReplicatedMap<TKey, TValue> Interface
Namespace: Hazelcast.DistributedObjects
Assembly: Hazelcast.Net.dll
Represents a distributed map with weak consistency and values locally stored on every node of the cluster.
public interface IHReplicatedMap<TKey, TValue> : IHMapBase<TKey, TValue>, IDistributedObject, IAsyncDisposable, IAsyncEnumerable<KeyValuePair<TKey, TValue>>
Inherited Members
Type Parameters
TKey | the type of keys maintained by this map |
TValue | the type of mapped values |
Remarks
Whenever a value is written asynchronously, the new value will be internally distributed to all existing cluster members, and eventually every node will have the new value.
When a new node joins the cluster, the new node initially will request existing values from older nodes and replicate them locally.
Methods
Name | Description |
---|---|
SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, IPredicate, object) | Subscribes to events. |
SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, object) | Subscribes to events. |
SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, TKey, IPredicate, object) | Subscribes to events. |
SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, TKey, object) | Subscribes to events. |
UnsubscribeAsync(Guid) | Unsubscribe from events. |