Class NamingSystemRuntimeData
- Namespace
- FishMMO.Server.Implementation.World.SceneServer
- Assembly
- FishMMO.Server.dll
Runtime data container for naming lookups in flight and per-connection request budgets.
public class NamingSystemRuntimeData : RuntimeDataContainer, IRuntimeDataContainer<INetworkManagerWrapper, ServerManager, NetworkConnection, IRuntimeDataContainer>, IServerComponent<INetworkManagerWrapper, ServerManager, NetworkConnection, IRuntimeDataContainer>, INamingSystemRuntimeData, IRuntimeDataContainer, IServerComponent
- Inheritance
-
NamingSystemRuntimeData
- Implements
-
IRuntimeDataContainer<INetworkManagerWrapper, ServerManager, NetworkConnection, IRuntimeDataContainer>
- Inherited Members
Fields
MaxInFlightLookups
Most keys of one kind in flight at once. A request beyond it is not answered, as a request beyond its connection's budget is not; the client asks again.
public const int MaxInFlightLookups = 5000
Field Value
MaxWaitersPerLookup
Most connections waiting on one key. Far above any honest overlap: it bounds only what one key can be made to cost.
public const int MaxWaitersPerLookup = 256
Field Value
Properties
CharacterByNameInFlight
In-flight character reverse lookups keyed by lowercase character name, each with every connection waiting on it. Main thread only.
public InFlightLookupTable<string, NetworkConnection> CharacterByNameInFlight { get; }
Property Value
- InFlightLookupTable<string, NetworkConnection>
CharacterNameByIdInFlight
In-flight character-name-by-id lookups keyed by character identifier, each with every connection waiting on it and the form it asked in. Main thread only.
public InFlightLookupTable<long, NamingWaiter<NetworkConnection>> CharacterNameByIdInFlight { get; }
Property Value
- InFlightLookupTable<long, NamingWaiter<NetworkConnection>>
ConnectionRequestBuckets
Per-connection request budgets, keyed by client ID. An entry idle past the cache TTL is swept; by then its bucket would have refilled anyway.
public LastSeenCacheTracker<int, NamingRequestBucket> ConnectionRequestBuckets { get; }
Property Value
GuildNameByIdInFlight
In-flight guild-name-by-id lookups keyed by guild identifier, each with every connection waiting on it and the form it asked in. Main thread only.
public InFlightLookupTable<long, NamingWaiter<NetworkConnection>> GuildNameByIdInFlight { get; }
Property Value
- InFlightLookupTable<long, NamingWaiter<NetworkConnection>>
NextCacheSweepAt
When the next cache sweep is allowed, in MonotonicClock seconds.
public double NextCacheSweepAt { get; set; }
Property Value
Methods
Clear()
Clears all runtime trackers.
public override void Clear()
InitializeOnce()
Initializes all naming runtime trackers.
public override ServerComponentInitializationStatus InitializeOnce()
Returns
OnDeinitialize()
Deinitializes runtime trackers and releases references.
protected override void OnDeinitialize()