Class ServerControlReading
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
stateServerControlStatereadAtdouble
Fields
ReadAt
The MonotonicClock reading taken when the reply arrived.
public readonly double ReadAt
Field Value
State
The control state as read.
public readonly ServerControlState State
Field Value
Methods
ArrivedNow(ServerControlState)
A reading whose reply has just arrived.
public static ServerControlReading ArrivedNow(ServerControlState state)
Parameters
stateServerControlState