Table of Contents

Class KickRequestSystemQueueData

Namespace
FishMMO.Server.Implementation
Assembly
FishMMO.Server.dll

Runtime data container for kick request processing state. Manages kick request database polling state separately from KickRequestSystem logic.

public class KickRequestSystemQueueData : RuntimeDataContainer, IRuntimeDataContainer<INetworkManagerWrapper, ServerManager, NetworkConnection, IRuntimeDataContainer>, IServerComponent<INetworkManagerWrapper, ServerManager, NetworkConnection, IRuntimeDataContainer>, IKickRequestSystemQueueData, IRuntimeDataContainer, IServerComponent
Inheritance
KickRequestSystemQueueData
Implements
Inherited Members

Properties

IsProcessing

Indicates whether the system is currently processing kick requests to prevent overlapping fetches.

public bool IsProcessing { get; set; }

Property Value

bool

ReadWindow

Where the poll has got to and what it has handled, on the database clock. Touched only by the poll that holds IsProcessing.

public KickRequestReadWindow ReadWindow { get; }

Property Value

KickRequestReadWindow

Remarks

It replaced a (time, id) cursor seeded from this host's DateTime.UtcNow and compared with stamps the database wrote. A host running ahead of the database skipped every kick stamped inside the lead; and a strict cursor skipped a kick whose transaction committed after a later-stamped one's. See KickRequestReadWindow.

WatchStartedAt

When this server began watching for kicks, in MonotonicClock seconds. A first read reaches back this long before the database's "now", so a kick issued before the first successful read is not skipped.

public double WatchStartedAt { get; }

Property Value

double

Methods

Clear()

Clears the kick request queue state: the next poll is a first read again, reaching back to now.

public override void Clear()

InitializeOnce()

Initializes the kick request queue data container.

public override ServerComponentInitializationStatus InitializeOnce()

Returns

ServerComponentInitializationStatus

OnDeinitialize()

Deinitializes the kick request queue data container.

protected override void OnDeinitialize()