public class NtpMessageModifier extends Object
Constructor and Description |
---|
NtpMessageModifier() |
Modifier and Type | Method and Description |
---|---|
NtpMessage |
getNtpMessage()
Returns the built
NtpMessage . |
void |
setLeapIndicator(LeapIndicatorType leapIndicator) |
void |
setMode(ModeType mode) |
void |
setOriginateTimestamp(NtpTimeStamp originateTimestamp) |
void |
setPollInterval(byte pollInterval) |
void |
setPrecision(byte precision) |
void |
setReceiveTimestamp(NtpTimeStamp receiveTimestamp) |
void |
setReferenceIdentifier(ReferenceIdentifier referenceIdentifier) |
void |
setReferenceTimestamp(NtpTimeStamp referenceTimestamp) |
void |
setRootDelay(int rootDelay) |
void |
setRootDispersion(int rootDispersion) |
void |
setStratum(StratumType stratumType) |
void |
setTransmitTimestamp(NtpTimeStamp transmitTimestamp) |
void |
setVersionNumber(int versionNumber) |
public NtpMessageModifier()
public NtpMessage getNtpMessage()
NtpMessage
.NtpMessage
.public void setLeapIndicator(LeapIndicatorType leapIndicator)
leapIndicator
- The Leap Indicator to set.public void setOriginateTimestamp(NtpTimeStamp originateTimestamp)
originateTimestamp
- The Originate Timestamp to set.public void setPollInterval(byte pollInterval)
pollInterval
- The Poll Interval to set.public void setPrecision(byte precision)
precision
- The Precision to set.public void setReceiveTimestamp(NtpTimeStamp receiveTimestamp)
receiveTimestamp
- The Receive Timestamp to set.public void setReferenceIdentifier(ReferenceIdentifier referenceIdentifier)
referenceIdentifier
- The Reference Identifier to set.public void setReferenceTimestamp(NtpTimeStamp referenceTimestamp)
referenceTimestamp
- The Reference Timestamp to set.public void setRootDelay(int rootDelay)
rootDelay
- The Root Delay to set.public void setRootDispersion(int rootDispersion)
rootDispersion
- The Root Dispersion to set.public void setStratum(StratumType stratumType)
stratumType
- The Stratum to set.public void setTransmitTimestamp(NtpTimeStamp transmitTimestamp)
transmitTimestamp
- The Transmit Timestamp to set.public void setVersionNumber(int versionNumber)
versionNumber
- The Version Number to set.Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.