Table of Contents

Class ServerControlReading

Namespace
FishMMO.Server.Core
Assembly
FishMMO.Server.dll

One read of a server row's control state, stamped with when its reply arrived.

public sealed class ServerControlReading
Inheritance
ServerControlReading
Inherited Members

Remarks

The arrival time is what anchors ShutdownInSeconds on this process's clock, so it is taken by the worker that awaited the read, the moment the reply is in hand, rather than when the main thread gets round to adopting it a pulse later. A class so the pulse worker can publish it to the main thread in one atomic reference store.

Constructors

ServerControlReading(ServerControlState, double)

Creates a reading.

public ServerControlReading(ServerControlState state, double readAt)

Parameters

state ServerControlState
readAt double

Fields

ReadAt

The MonotonicClock reading taken when the reply arrived.

public readonly double ReadAt

Field Value

double

State

The control state as read.

public readonly ServerControlState State

Field Value

ServerControlState

Methods

ArrivedNow(ServerControlState)

A reading whose reply has just arrived.

public static ServerControlReading ArrivedNow(ServerControlState state)

Parameters

state ServerControlState

Returns

ServerControlReading