Vixen
02b45cc4
csharp
public record class LeaseOptions

How long a lease survives without a renewal, and how the cluster tells the time.

Read the guide page for this →

Remarks

⚠ The lease has to outlive a realm's worst pause, and no longer. Too short and a garbage collection costs a realm its right to write; too long and a crashed realm's character is unplayable until it lapses. Twenty seconds is ten heartbeats.

Fields and properties (3)

  • public TimeSpan Lifetime

    How long a lease lasts from its last renewal.

  • public Func<DateTimeOffset> Now

    The clock. A parameter so a test does not have to wait.

  • public static LeaseOptions Default

    The defaults.

Methods (1)

  • public LeaseOptions(TimeSpan Lifetime, Func<DateTimeOffset> Now)

    How long a lease survives without a renewal, and how the cluster tells the time.

Used by (2)

  • PlayerGrainVixen.Live.Orchestrator
  • PlayerLeaseStateVixen.Live.Orchestrator