public interface TimeSourceA TimeSource is deliberately simple and inert: its only job is to fetch a candidate time from somewhere and return it as a TimeSample. It performs no licensing logic and makes no trust decisions. Whether a returned sample is believed, combined with others, or thrown away is decided by the licensing engine, not here.
Typical implementations include:
sample() returns null when the source currently has nothing trustworthy to offer (e.g. the network is down, no client has reported in). Returning null is normal and expected, not an error.sample() return the most recent cached reading (or null) promptly.(C) Copyright 2026 Mindus SARL. All rights reserved.
| Modifier and Type | Method and Description |
|---|---|
String | name()A short, stable name for this source, used in tracing and diagnostics. |
TimeSample | sample()Returns the most recent trustworthy reading this source can offer, or null if it currently has none. |
TimeSample sample()
null if it currently has none.This call must return promptly and must not perform a blocking network round-trip inline; any such work belongs on the implementation's own background schedule.
TimeSample, or null if no reading is available now.String name()
"ntp" or "client-witness".Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.