public final class SntpTuning extends Object
SntpClient uses: the destination UDP port and the accuracy/confidence heuristic constants.These were originally compile-time constants inside SntpClient. They are bundled here so the server side (which reads and clamps them from server.ini) can hand a fully-formed, validated set to the poller without SntpClient needing to know anything about INI files or clamping. The class is pure JDK and dependency-free, like the rest of this package.
(C) Copyright 2026 Mindus SARL. All rights reserved.
| Constructor and Description |
|---|
SntpTuning(int port, int penaltyPerStratum, int maxDispersionPenalty, int maxRttPenalty, int confidenceHighAt, int confidenceMediumAt)Creates a tuning bundle. |
| Modifier and Type | Method and Description |
|---|---|
static SntpTuning | defaults()Returns a tuning bundle filled with the documented defaults and the standard NTP port. |
int | getConfidenceHighAt() |
int | getConfidenceMediumAt() |
int | getMaxDispersionPenalty() |
int | getMaxRttPenalty() |
int | getPenaltyPerStratum() |
int | getPort() |
public SntpTuning(int port,
int penaltyPerStratum,
int maxDispersionPenalty,
int maxRttPenalty,
int confidenceHighAt,
int confidenceMediumAt)port - The destination UDP port.penaltyPerStratum - Accuracy lost per stratum.maxDispersionPenalty - Maximum accuracy lost to root dispersion.maxRttPenalty - Maximum accuracy lost to round-trip delay.confidenceHighAt - HIGH-confidence accuracy threshold.confidenceMediumAt - MEDIUM-confidence accuracy threshold.public static SntpTuning defaults()
public int getPort()
public int getPenaltyPerStratum()
public int getMaxDispersionPenalty()
public int getMaxRttPenalty()
public int getConfidenceHighAt()
public int getConfidenceMediumAt()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.