Vixen
02b45cc4
csharp
public sealed class ShardGrain

The grain around ShardLifecycle.

Read the guide page for this →

Methods (9)

  • public ShardGrain(HealthOptions? options = null)

    Stands one up.

  • public Task<ShardReport> Report()

    What this shard is.

  • public Task Requested(ShardKey key, ShardCapacity capacity)

    A decision that this shard should exist.

  • public Task Starting(RealmInstanceId instance, RealmEndpoint endpoint)

    The placement backend created something.

  • public Task Ready(RealmEndpoint endpoint)

    The realm loaded its map and is accepting sessions.

  • public Task<ShardState> Heartbeat(ShardHeartbeat sample)

    The two-second sample, and the shard's own state back.

  • public Task Drain(string reason)

    Stop taking arrivals and move everyone out at safe moments.

  • public Task Stopped()

    It ended the way it was asked to.

  • public Task Lost(string detail)

    It went away without being asked.