AuthorityCallTarget
What the receiving worker knows about a call's target when the call arrives.
Nebula · Packages/com.1by3.nebula/Runtime/Worker/AuthorityCallContract.cspublic readonly struct AuthorityCallTargetWhat the receiving worker knows about a call's target when the call arrives.
Constructors
AuthorityCallTarget
public AuthorityCallTarget(bool known, bool hasAuthority, uint epoch, bool canForward);Fields
Unknown
public static readonly AuthorityCallTarget Unknown = new AuthorityCallTarget(false, false, 0, false);The entity is not here at all.
Properties
Known
public bool Known { get; }This worker holds a copy of the entity (authoritative or ghost).
HasAuthority
public bool HasAuthority { get; }This worker has authority over it.
Epoch
public uint Epoch { get; }The entity's epoch on this worker; meaningless when not Known.
CanForward
public bool CanForward { get; }This worker has a connected peer to send the call on to, other than the one it came from.
Methods
Authoritative
public static AuthorityCallTarget Authoritative(uint epoch);This worker has authority over the entity at epoch.
Ghost
public static AuthorityCallTarget Ghost(uint epoch, bool canForward);This worker holds a ghost at epoch and can (or cannot) forward to its owner.
AuthorityCallRouter
The rules every worker applies to an incoming AuthorityRpc call, in one place and with no engine types, so the worker, the standalone services and the conformance tests run the same code.
AuthorityCallTracker
The sender's side of the reply channel: the calls this worker sent with a reply requested and has not heard back about.