Class ShardRegionStats
Entity allocation statistics for a specific shard region.
Inherited Members
Namespace: Akka.Cluster.Sharding
Assembly: Akka.Cluster.Sharding.dll
Syntax
[Serializable]
public sealed class ShardRegionStats : IClusterShardingSerializable, IEquatable<ShardRegionStats>
Constructors
| Edit this page View SourceShardRegionStats(IImmutableDictionary<string, int>)
Creates a new ShardRegionStats instance.
Declaration
[Obsolete("Use constructor with `failed` argument. Obsolete since 1.5.0-alpha1")]
public ShardRegionStats(IImmutableDictionary<string, int> stats)
Parameters
| Type | Name | Description |
|---|---|---|
| IImmutableDictionary<string, int> | stats | the region stats mapping of |
ShardRegionStats(IImmutableDictionary<string, int>, IImmutableSet<string>)
Creates a new ShardRegionStats instance.
Declaration
public ShardRegionStats(IImmutableDictionary<string, int> stats, IImmutableSet<string> failed)
Parameters
| Type | Name | Description |
|---|---|---|
| IImmutableDictionary<string, int> | stats | the region stats mapping of |
| IImmutableSet<string> | failed | set of shards if any failed to respond within the timeout |
Fields
| Edit this page View SourceFailed
set of shards if any failed to respond within the timeout
Declaration
public readonly IImmutableSet<string> Failed
Field Value
| Type | Description |
|---|---|
| IImmutableSet<string> |
Stats
the region stats mapping of ShardId to number of entities
Declaration
public readonly IImmutableDictionary<string, int> Stats
Field Value
| Type | Description |
|---|---|
| IImmutableDictionary<string, int> |
Methods
| Edit this page View SourceEquals(ShardRegionStats)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ShardRegionStats other)
Parameters
| Type | Name | Description |
|---|---|---|
| ShardRegionStats | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Edit this page