java.lang.Object
org.refcodes.serial.TransmissionMetrics.Builder
- All Implemented Interfaces:
org.refcodes.mixin.BlockSizeAccessor.BlockSizeBuilder<TransmissionMetrics.Builder>
,org.refcodes.mixin.EncodingAccessor.EncodingBuilder<Charset,
,TransmissionMetrics.Builder> org.refcodes.mixin.ReadTimeoutInMsAccessor.ReadTimeoutInMsBuilder<TransmissionMetrics.Builder>
,org.refcodes.mixin.WriteTimeoutInMsAccessor.WriteTimeoutInMsBuilder<TransmissionMetrics.Builder>
,org.refcodes.numerical.ChecksumValidationModeAccessor.ChecksumValidationModeBuilder<TransmissionMetrics.Builder>
,org.refcodes.numerical.CrcAlgorithmAccessor.CrcAlgorithmBuilder<TransmissionMetrics.Builder>
,org.refcodes.numerical.CrcChecksumConcatenateModeAccessor.CrcChecksumConcatenateModeBuilder<TransmissionMetrics.Builder>
,org.refcodes.numerical.EndianessAccessor.EndianessBuilder<TransmissionMetrics.Builder>
,AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder<TransmissionMetrics.Builder>
,AcknowledgeRetryNumberAccessor.AcknowledgeRetryNumberBuilder<TransmissionMetrics.Builder>
,AcknowledgeSegmentPackagerAccessor.AcknowledgeSegmentPackagerBuilder<TransmissionMetrics.Builder>
,AcknowledgeTimeoutInMsAccessor.AcknowledgeTimeoutInMsBuilder<TransmissionMetrics.Builder>
,ClearToSendMagicBytesAccessor.ClearToSendMagicBytesBuilder<TransmissionMetrics.Builder>
,ClearToSendSegmentPackagerAccessor.ClearToSendSegmentPackagerBuilder<TransmissionMetrics.Builder>
,ClearToSendTimeoutInMsAccessor.ClearToSendTimeoutInMsBuilder<TransmissionMetrics.Builder>
,EndOfStringByteAccessor.EndOfStringByteBuilder<TransmissionMetrics.Builder>
,EnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsBuilder<TransmissionMetrics.Builder>
,IoHeuristicsTimeToLiveInMsAccessor.IoHeuristicsTimeToLiveInMsBuilder<TransmissionMetrics.Builder>
,LengthWidthAccessor.LengthWidthBuilder<TransmissionMetrics.Builder>
,MagicBytesLengthAccessor.MagicBytesLengthBuilder<TransmissionMetrics.Builder>
,PacketLengthWidthAccessor.PacketLengthWidthBuilder<TransmissionMetrics.Builder>
,PacketMagicBytesAccessor.PacketMagicBytesBuilder<TransmissionMetrics.Builder>
,PacketSegmentPackagerAccessor.PacketSegmentPackagerBuilder<TransmissionMetrics.Builder>
,PingMagicBytesAccessor.PingMagicBytesBuilder<TransmissionMetrics.Builder>
,PingRetryNumberAccessor.PingRetryNumberBuilder<TransmissionMetrics.Builder>
,PingTimeoutInMsAccessor.PingTimeoutInMsBuilder<TransmissionMetrics.Builder>
,PongMagicBytesAccessor.PongMagicBytesBuilder<TransmissionMetrics.Builder>
,ReadyToReceiveMagicBytesAccessor.ReadyToReceiveMagicBytesBuilder<TransmissionMetrics.Builder>
,ReadyToReceiveRetryNumberAccessor.ReadyToReceiveRetryNumberBuilder<TransmissionMetrics.Builder>
,ReadyToReceiveSegmentPackagerAccessor.ReadyToReceiveSegmentPackagerBuilder<TransmissionMetrics.Builder>
,ReadyToReceiveTimeoutInMsAccessor.ReadyToReceiveTimeoutInMsBuilder<TransmissionMetrics.Builder>
,ReadyToSendMagicBytesAccessor.ReadyToSendMagicBytesBuilder<TransmissionMetrics.Builder>
,ReadyToSendRetryNumberAccessor.ReadyToSendRetryNumberBuilder<TransmissionMetrics.Builder>
,ReadyToSendSegmentPackagerAccessor.ReadyToSendSegmentPackagerBuilder<TransmissionMetrics.Builder>
,ReadyToSendTimeoutInMsAccessor.ReadyToSendTimeoutInMsBuilder<TransmissionMetrics.Builder>
,SequenceNumberConcatenateModeAccessor.SequenceNumberConcatenateModeBuilder<TransmissionMetrics.Builder>
,SequenceNumberInitValueAccessor.SequenceNumberInitValueBuilder<TransmissionMetrics.Builder>
,SequenceNumberWidthAccessor.SequenceNumberWidthBuilder<TransmissionMetrics.Builder>
,TransmissionRetryNumberAccessor.TransmissionRetryNumberBuilder<TransmissionMetrics.Builder>
,TransmissionTimeoutInMsAccessor.TransmissionTimeoutInMsBuilder<TransmissionMetrics.Builder>
- Enclosing class:
TransmissionMetrics
public static class TransmissionMetrics.Builder
extends Object
implements AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder<TransmissionMetrics.Builder>, AcknowledgeTimeoutInMsAccessor.AcknowledgeTimeoutInMsBuilder<TransmissionMetrics.Builder>, AcknowledgeRetryNumberAccessor.AcknowledgeRetryNumberBuilder<TransmissionMetrics.Builder>, TransmissionTimeoutInMsAccessor.TransmissionTimeoutInMsBuilder<TransmissionMetrics.Builder>, TransmissionRetryNumberAccessor.TransmissionRetryNumberBuilder<TransmissionMetrics.Builder>, LengthWidthAccessor.LengthWidthBuilder<TransmissionMetrics.Builder>, org.refcodes.numerical.CrcAlgorithmAccessor.CrcAlgorithmBuilder<TransmissionMetrics.Builder>, org.refcodes.numerical.ChecksumValidationModeAccessor.ChecksumValidationModeBuilder<TransmissionMetrics.Builder>, org.refcodes.numerical.EndianessAccessor.EndianessBuilder<TransmissionMetrics.Builder>, org.refcodes.mixin.BlockSizeAccessor.BlockSizeBuilder<TransmissionMetrics.Builder>, SequenceNumberWidthAccessor.SequenceNumberWidthBuilder<TransmissionMetrics.Builder>, SequenceNumberInitValueAccessor.SequenceNumberInitValueBuilder<TransmissionMetrics.Builder>, org.refcodes.mixin.ReadTimeoutInMsAccessor.ReadTimeoutInMsBuilder<TransmissionMetrics.Builder>, org.refcodes.mixin.WriteTimeoutInMsAccessor.WriteTimeoutInMsBuilder<TransmissionMetrics.Builder>, SequenceNumberConcatenateModeAccessor.SequenceNumberConcatenateModeBuilder<TransmissionMetrics.Builder>, org.refcodes.numerical.CrcChecksumConcatenateModeAccessor.CrcChecksumConcatenateModeBuilder<TransmissionMetrics.Builder>, MagicBytesLengthAccessor.MagicBytesLengthBuilder<TransmissionMetrics.Builder>, org.refcodes.mixin.EncodingAccessor.EncodingBuilder<Charset,TransmissionMetrics.Builder>, AcknowledgeSegmentPackagerAccessor.AcknowledgeSegmentPackagerBuilder<TransmissionMetrics.Builder>, PacketSegmentPackagerAccessor.PacketSegmentPackagerBuilder<TransmissionMetrics.Builder>, ReadyToReceiveSegmentPackagerAccessor.ReadyToReceiveSegmentPackagerBuilder<TransmissionMetrics.Builder>, ReadyToReceiveTimeoutInMsAccessor.ReadyToReceiveTimeoutInMsBuilder<TransmissionMetrics.Builder>, ReadyToReceiveMagicBytesAccessor.ReadyToReceiveMagicBytesBuilder<TransmissionMetrics.Builder>, ReadyToReceiveRetryNumberAccessor.ReadyToReceiveRetryNumberBuilder<TransmissionMetrics.Builder>, EnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsBuilder<TransmissionMetrics.Builder>, ReadyToSendTimeoutInMsAccessor.ReadyToSendTimeoutInMsBuilder<TransmissionMetrics.Builder>, ReadyToSendMagicBytesAccessor.ReadyToSendMagicBytesBuilder<TransmissionMetrics.Builder>, ReadyToSendRetryNumberAccessor.ReadyToSendRetryNumberBuilder<TransmissionMetrics.Builder>, ReadyToSendSegmentPackagerAccessor.ReadyToSendSegmentPackagerBuilder<TransmissionMetrics.Builder>, ClearToSendTimeoutInMsAccessor.ClearToSendTimeoutInMsBuilder<TransmissionMetrics.Builder>, ClearToSendMagicBytesAccessor.ClearToSendMagicBytesBuilder<TransmissionMetrics.Builder>, ClearToSendSegmentPackagerAccessor.ClearToSendSegmentPackagerBuilder<TransmissionMetrics.Builder>, EndOfStringByteAccessor.EndOfStringByteBuilder<TransmissionMetrics.Builder>, PacketMagicBytesAccessor.PacketMagicBytesBuilder<TransmissionMetrics.Builder>, PacketLengthWidthAccessor.PacketLengthWidthBuilder<TransmissionMetrics.Builder>, PingMagicBytesAccessor.PingMagicBytesBuilder<TransmissionMetrics.Builder>, PingRetryNumberAccessor.PingRetryNumberBuilder<TransmissionMetrics.Builder>, PingTimeoutInMsAccessor.PingTimeoutInMsBuilder<TransmissionMetrics.Builder>, PongMagicBytesAccessor.PongMagicBytesBuilder<TransmissionMetrics.Builder>, IoHeuristicsTimeToLiveInMsAccessor.IoHeuristicsTimeToLiveInMsBuilder<TransmissionMetrics.Builder>
Builder to build
TransmissionMetrics
.-
Field Summary
Modifier and TypeFieldDescriptionprotected byte[]
protected int
protected SegmentPackager
protected long
protected int
protected org.refcodes.numerical.ChecksumValidationMode
protected byte[]
protected SegmentPackager
protected long
protected org.refcodes.numerical.CrcAlgorithm
protected org.refcodes.mixin.ConcatenateMode
protected Charset
protected org.refcodes.numerical.Endianess
protected byte
protected long
protected long
protected int
protected int
protected int
protected byte[]
protected SegmentPackager
protected byte[]
protected int
protected long
protected byte[]
protected long
protected byte[]
protected int
protected SegmentPackager
protected long
protected byte[]
protected int
protected SegmentPackager
protected long
protected org.refcodes.mixin.ConcatenateMode
protected int
protected int
protected int
protected long
protected long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theTransmissionMetrics
instance from this builder's settings.withAcknowledgeMagicBytes
(byte[] aAcknowledgeMagicBytes) Sets the magic bytes for the acknowledge magic bytes property.withAcknowledgeRetryNumber
(int aAcknowledgeRetryNumber) Sets the number of retries for the acknowledge retry number.withAcknowledgeSegmentPackager
(SegmentPackager aAcknowledgeSegmentPackager) Sets theSegmentPackager
ACK property.withAcknowledgeTimeoutInMs
(long aAcknowledgeTimeoutInMs) Sets the number for the acknowledge timeout property.withBlockSize
(int aBlockSize) withChecksumValidationMode
(org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) withClearToSendMagicBytes
(byte[] aClearToSendMagicBytes) Sets the magic bytes for the CTS ("clear-to-send") magic bytes property.withClearToSendSegmentPackager
(SegmentPackager aClearToSendSegmentPackager) Sets theSegmentPackager
CTS ("clear-to-send") property.withClearToSendTimeoutInMs
(long aClearToSendTimeoutInMs) Sets the number for the CTS ("clear-to-send") timeout property.withCrcAlgorithm
(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) withCrcChecksumConcatenateMode
(org.refcodes.mixin.ConcatenateMode aChecksumConcatenateMode) withEncoding
(Charset aEncoding) withEndianess
(org.refcodes.numerical.Endianess aEndianess) withEndOfStringByte
(byte aEndOfStringByte) Sets the end of string byte for the end of string byte property.withEnquiryStandbyTimeInMs
(long aEnquiryStandbyTimeInMs) Sets the number for the ENQ ("enquiry") timeout property.withIoHeuristicsTimeToLiveInMs
(long aIoHeuristicsTimeToLiveInMs) Sets the number for the IO heuristics TTL (time to live) property.withLengthWidth
(int aLengthWidth) Sets the length width (in bytes) for the length width (in bytes) property.withMagicBytesLength
(int aMagicBytesLength) Sets the magic bytes length for the magic bytes magic bytes length property.withPacketLengthWidth
(int aPacketLengthWidth) With packet length width.withPacketMagicBytes
(byte[] aPacketMagicBytes) Sets the magic bytes for the packet magic bytes property.withPacketSegmentPackager
(SegmentPackager aPacketSegmentPackager) Sets theSegmentPackager
for the packetSegmentPackager
property.withPingMagicBytes
(byte[] aPingMagicBytes) Sets the magic bytes for the ping magic bytes property.withPingRetryNumber
(int aPingRetryNumber) Sets the number of retries for the ping retry number.withPingTimeoutInMs
(long aPingTimeoutInMs) Sets the number for the ping timeout property.withPongMagicBytes
(byte[] aPongMagicBytes) Sets the magic bytes for the pong magic bytes property.withReadTimeoutInMs
(long aReadTimeoutInMs) withReadyToReceiveMagicBytes
(byte[] aReadyToReceiveMagicBytes) Sets the magic bytes for the RTR ("ready-to-receive") magic bytes property.withReadyToReceiveRetryNumber
(int aReadyToReceiveRetryNumber) Sets the number of retries for the RTR ("ready-to-receive") retry number.withReadyToReceiveSegmentPackager
(SegmentPackager aReadyToReceiveSegmentPackager) Sets theSegmentPackager
RTR ("ready-to-receive") property.withReadyToReceiveTimeoutInMs
(long aReadyToReceiveTimeoutInMs) Sets the number for the RTR ("ready-to-receive") timeout property.withReadyToSendMagicBytes
(byte[] aReadyToSendMagicBytes) Sets the magic bytes for the RTS ("ready-to-send") magic bytes property.withReadyToSendRetryNumber
(int aReadyToSendRetryNumber) Sets the number of retries for the RTS ("ready-to-send") retry number.withReadyToSendSegmentPackager
(SegmentPackager aReadyToSendSegmentPackager) Sets theSegmentPackager
RTS ("ready-to-send") property.withReadyToSendTimeoutInMs
(long aReadyToSendTimeoutInMs) Sets the number for the RTS ("ready-to-send") timeout property.withSequenceNumberConcatenateMode
(org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode) Sets theConcatenateMode
for the sequence numberConcatenateMode
property.withSequenceNumberInitValue
(int aSequenceNumberInitValue) Sets the sequence number initial value for the sequence number initial value property.withSequenceNumberWidth
(int aSequenceNumberWidth) Sets the sequence number width (in bytes) for the sequence number width (in bytes) property.withTransmissionRetryNumber
(int aTransmissionRetryNumber) Sets the number of retries for the transmission retry number.withTransmissionTimeoutInMs
(long aTransmissionTimeoutInMs) Sets the number for the transmission timeout property.withWriteTimeoutInMs
(long aWriteTimeoutInMs) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.serial.AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder
withAcknowledgeMagicBytes, withAcknowledgeMagicBytes
Methods inherited from interface org.refcodes.serial.PacketMagicBytesAccessor.PacketMagicBytesBuilder
withPacketMagicBytes, withPacketMagicBytes
Methods inherited from interface org.refcodes.serial.PingMagicBytesAccessor.PingMagicBytesBuilder
withPingMagicBytes, withPingMagicBytes
Methods inherited from interface org.refcodes.serial.PongMagicBytesAccessor.PongMagicBytesBuilder
withPongMagicBytes, withPongMagicBytes
-
Field Details
-
acknowledgeMagicBytes
protected byte[] acknowledgeMagicBytes -
clearToSendMagicBytes
protected byte[] clearToSendMagicBytes -
packetMagicBytes
protected byte[] packetMagicBytes -
readyToReceiveMagicBytes
protected byte[] readyToReceiveMagicBytes -
readyToSendMagicBytes
protected byte[] readyToSendMagicBytes -
pingMagicBytes
protected byte[] pingMagicBytes -
pongMagicBytes
protected byte[] pongMagicBytes -
acknowledgeSegmentPackager
-
acknowledgeTimeoutInMs
protected long acknowledgeTimeoutInMs -
acknowledgeRetryNumber
protected int acknowledgeRetryNumber -
pingTimeoutInMs
protected long pingTimeoutInMs -
pingRetryNumber
protected int pingRetryNumber -
blockSize
protected int blockSize -
clearToSendSegmentPackager
-
clearToSendTimeoutInMs
protected long clearToSendTimeoutInMs -
crcAlgorithm
protected org.refcodes.numerical.CrcAlgorithm crcAlgorithm -
crcChecksumConcatenateMode
protected org.refcodes.mixin.ConcatenateMode crcChecksumConcatenateMode -
checksumValidationMode
protected org.refcodes.numerical.ChecksumValidationMode checksumValidationMode -
encoding
-
endianess
protected org.refcodes.numerical.Endianess endianess -
endOfStringByte
protected byte endOfStringByte -
enquiryStandbyTimeInMs
protected long enquiryStandbyTimeInMs -
lengthWidth
protected int lengthWidth -
packetLengthWidth
protected int packetLengthWidth -
magicBytesLength
protected int magicBytesLength -
packetSegmentPackager
-
readTimeoutInMs
protected long readTimeoutInMs -
readyToReceiveRetryNumber
protected int readyToReceiveRetryNumber -
readyToReceiveSegmentPackager
-
readyToReceiveTimeoutInMs
protected long readyToReceiveTimeoutInMs -
readyToSendRetryNumber
protected int readyToSendRetryNumber -
readyToSendSegmentPackager
-
readyToSendTimeoutInMs
protected long readyToSendTimeoutInMs -
sequenceNumberConcatenateMode
protected org.refcodes.mixin.ConcatenateMode sequenceNumberConcatenateMode -
sequenceNumberInitValue
protected int sequenceNumberInitValue -
sequenceNumberWidth
protected int sequenceNumberWidth -
transmissionRetryNumber
protected int transmissionRetryNumber -
transmissionTimeoutInMs
protected long transmissionTimeoutInMs -
writeTimeoutInMs
protected long writeTimeoutInMs -
ioHeuristicsTimeToLiveInMs
protected long ioHeuristicsTimeToLiveInMs
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withAcknowledgeMagicBytes
Sets the magic bytes for the acknowledge magic bytes property.- Specified by:
withAcknowledgeMagicBytes
in interfaceAcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder<TransmissionMetrics.Builder>
- Parameters:
aAcknowledgeMagicBytes
- The magic bytes to be stored by the acknowledge magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withClearToSendMagicBytes
Sets the magic bytes for the CTS ("clear-to-send") magic bytes property.- Specified by:
withClearToSendMagicBytes
in interfaceClearToSendMagicBytesAccessor.ClearToSendMagicBytesBuilder<TransmissionMetrics.Builder>
- Parameters:
aClearToSendMagicBytes
- The magic bytes to be stored by the CTS ("clear-to-send") magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withPacketMagicBytes
Sets the magic bytes for the packet magic bytes property.- Specified by:
withPacketMagicBytes
in interfacePacketMagicBytesAccessor.PacketMagicBytesBuilder<TransmissionMetrics.Builder>
- Parameters:
aPacketMagicBytes
- The magic bytes to be stored by the packet magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withReadyToReceiveMagicBytes
Sets the magic bytes for the RTR ("ready-to-receive") magic bytes property.- Specified by:
withReadyToReceiveMagicBytes
in interfaceReadyToReceiveMagicBytesAccessor.ReadyToReceiveMagicBytesBuilder<TransmissionMetrics.Builder>
- Parameters:
aReadyToReceiveMagicBytes
- The magic bytes to be stored by the RTR ("ready-to-receive") magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withReadyToSendMagicBytes
Sets the magic bytes for the RTS ("ready-to-send") magic bytes property.- Specified by:
withReadyToSendMagicBytes
in interfaceReadyToSendMagicBytesAccessor.ReadyToSendMagicBytesBuilder<TransmissionMetrics.Builder>
- Parameters:
aReadyToSendMagicBytes
- The magic bytes to be stored by the RTS ("ready-to-send") magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withAcknowledgeSegmentPackager
public TransmissionMetrics.Builder withAcknowledgeSegmentPackager(SegmentPackager aAcknowledgeSegmentPackager) Sets theSegmentPackager
ACK property.- Specified by:
withAcknowledgeSegmentPackager
in interfaceAcknowledgeSegmentPackagerAccessor.AcknowledgeSegmentPackagerBuilder<TransmissionMetrics.Builder>
- Parameters:
aAcknowledgeSegmentPackager
- TheSegmentPackager
to be stored by theSegmentPackager
ACK property.- Returns:
- The builder for applying multiple build operations.
-
withAcknowledgeRetryNumber
Sets the number of retries for the acknowledge retry number. A acknowledge retry number is the overall number of retries to use when counting retries.- Specified by:
withAcknowledgeRetryNumber
in interfaceAcknowledgeRetryNumberAccessor.AcknowledgeRetryNumberBuilder<TransmissionMetrics.Builder>
- Parameters:
aAcknowledgeRetryNumber
- The number of retries to be stored by the number of acknowledge retry number.- Returns:
- The builder for applying multiple build operations.
-
withAcknowledgeTimeoutInMs
Sets the number for the acknowledge timeout property.- Specified by:
withAcknowledgeTimeoutInMs
in interfaceAcknowledgeTimeoutInMsAccessor.AcknowledgeTimeoutInMsBuilder<TransmissionMetrics.Builder>
- Parameters:
aAcknowledgeTimeoutInMs
- The acknowledge timeout in milliseconds to be stored by the acknowledge timeout property.- Returns:
- The builder for applying multiple build operations.
-
withPingRetryNumber
Sets the number of retries for the ping retry number. A ping retry number is the overall number of retries to use when counting retries.- Specified by:
withPingRetryNumber
in interfacePingRetryNumberAccessor.PingRetryNumberBuilder<TransmissionMetrics.Builder>
- Parameters:
aPingRetryNumber
- The number of retries to be stored by the number of ping retry number.- Returns:
- The builder for applying multiple build operations.
-
withPingTimeoutInMs
Sets the number for the ping timeout property.- Specified by:
withPingTimeoutInMs
in interfacePingTimeoutInMsAccessor.PingTimeoutInMsBuilder<TransmissionMetrics.Builder>
- Parameters:
aPingTimeoutInMs
- The ping timeout in milliseconds to be stored by the ping timeout property.- Returns:
- The builder for applying multiple build operations.
-
withBlockSize
- Specified by:
withBlockSize
in interfaceorg.refcodes.mixin.BlockSizeAccessor.BlockSizeBuilder<TransmissionMetrics.Builder>
-
withChecksumValidationMode
public TransmissionMetrics.Builder withChecksumValidationMode(org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) - Specified by:
withChecksumValidationMode
in interfaceorg.refcodes.numerical.ChecksumValidationModeAccessor.ChecksumValidationModeBuilder<TransmissionMetrics.Builder>
-
withClearToSendSegmentPackager
public TransmissionMetrics.Builder withClearToSendSegmentPackager(SegmentPackager aClearToSendSegmentPackager) Sets theSegmentPackager
CTS ("clear-to-send") property.- Specified by:
withClearToSendSegmentPackager
in interfaceClearToSendSegmentPackagerAccessor.ClearToSendSegmentPackagerBuilder<TransmissionMetrics.Builder>
- Parameters:
aClearToSendSegmentPackager
- TheSegmentPackager
to be stored by theSegmentPackager
CTS ("clear-to-send") property.- Returns:
- The builder for applying multiple build operations.
-
withClearToSendTimeoutInMs
Sets the number for the CTS ("clear-to-send") timeout property.- Specified by:
withClearToSendTimeoutInMs
in interfaceClearToSendTimeoutInMsAccessor.ClearToSendTimeoutInMsBuilder<TransmissionMetrics.Builder>
- Parameters:
aClearToSendTimeoutInMs
- The CTS ("clear-to-send") timeout in milliseconds to be stored by the CTS timeout property.- Returns:
- The builder for applying multiple build operations.
-
withCrcAlgorithm
public TransmissionMetrics.Builder withCrcAlgorithm(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) - Specified by:
withCrcAlgorithm
in interfaceorg.refcodes.numerical.CrcAlgorithmAccessor.CrcAlgorithmBuilder<TransmissionMetrics.Builder>
-
withCrcChecksumConcatenateMode
public TransmissionMetrics.Builder withCrcChecksumConcatenateMode(org.refcodes.mixin.ConcatenateMode aChecksumConcatenateMode) - Specified by:
withCrcChecksumConcatenateMode
in interfaceorg.refcodes.numerical.CrcChecksumConcatenateModeAccessor.CrcChecksumConcatenateModeBuilder<TransmissionMetrics.Builder>
-
withEncoding
- Specified by:
withEncoding
in interfaceorg.refcodes.mixin.EncodingAccessor.EncodingBuilder<Charset,
TransmissionMetrics.Builder>
-
withEndianess
- Specified by:
withEndianess
in interfaceorg.refcodes.numerical.EndianessAccessor.EndianessBuilder<TransmissionMetrics.Builder>
-
withEndOfStringByte
Sets the end of string byte for the end of string byte property.- Specified by:
withEndOfStringByte
in interfaceEndOfStringByteAccessor.EndOfStringByteBuilder<TransmissionMetrics.Builder>
- Parameters:
aEndOfStringByte
- The end of string byte to be stored by the end of string byte property.- Returns:
- The builder for applying multiple build operations.
-
withEnquiryStandbyTimeInMs
Sets the number for the ENQ ("enquiry") timeout property.- Specified by:
withEnquiryStandbyTimeInMs
in interfaceEnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsBuilder<TransmissionMetrics.Builder>
- Parameters:
aEnquiryStandbyTimeInMs
- The ENQ ("enquiry") timeout in milliseconds to be stored by the ENQ ("enquiry") timeout property.- Returns:
- The builder for applying multiple build operations.
-
withLengthWidth
Sets the length width (in bytes) for the length width (in bytes) property.- Specified by:
withLengthWidth
in interfaceLengthWidthAccessor.LengthWidthBuilder<TransmissionMetrics.Builder>
- Parameters:
aLengthWidth
- The length width (in bytes) to be stored by the length width (in bytes) property.- Returns:
- The builder for applying multiple build operations.
-
withPacketLengthWidth
With packet length width.- Specified by:
withPacketLengthWidth
in interfacePacketLengthWidthAccessor.PacketLengthWidthBuilder<TransmissionMetrics.Builder>
- Parameters:
aPacketLengthWidth
- the packet length width- Returns:
- the builder
-
withMagicBytesLength
Sets the magic bytes length for the magic bytes magic bytes length property.- Specified by:
withMagicBytesLength
in interfaceMagicBytesLengthAccessor.MagicBytesLengthBuilder<TransmissionMetrics.Builder>
- Parameters:
aMagicBytesLength
- The magic bytes length to be stored by the magic bytes length property.- Returns:
- The builder for applying multiple build operations.
-
withPacketSegmentPackager
public TransmissionMetrics.Builder withPacketSegmentPackager(SegmentPackager aPacketSegmentPackager) Sets theSegmentPackager
for the packetSegmentPackager
property.- Specified by:
withPacketSegmentPackager
in interfacePacketSegmentPackagerAccessor.PacketSegmentPackagerBuilder<TransmissionMetrics.Builder>
- Parameters:
aPacketSegmentPackager
- TheSegmentPackager
to be stored by the packetSegmentPackager
property.- Returns:
- The builder for applying multiple build operations.
-
withReadTimeoutInMs
- Specified by:
withReadTimeoutInMs
in interfaceorg.refcodes.mixin.ReadTimeoutInMsAccessor.ReadTimeoutInMsBuilder<TransmissionMetrics.Builder>
-
withReadyToReceiveRetryNumber
Sets the number of retries for the RTR ("ready-to-receive") retry number. A RTR retry number is the overall number of retries to use when counting retries.- Specified by:
withReadyToReceiveRetryNumber
in interfaceReadyToReceiveRetryNumberAccessor.ReadyToReceiveRetryNumberBuilder<TransmissionMetrics.Builder>
- Parameters:
aReadyToReceiveRetryNumber
- The number of retries to be stored by the number of RTR ("ready-to-receive") retry number.- Returns:
- The builder for applying multiple build operations.
-
withReadyToReceiveSegmentPackager
public TransmissionMetrics.Builder withReadyToReceiveSegmentPackager(SegmentPackager aReadyToReceiveSegmentPackager) Sets theSegmentPackager
RTR ("ready-to-receive") property.- Specified by:
withReadyToReceiveSegmentPackager
in interfaceReadyToReceiveSegmentPackagerAccessor.ReadyToReceiveSegmentPackagerBuilder<TransmissionMetrics.Builder>
- Parameters:
aReadyToReceiveSegmentPackager
- TheSegmentPackager
to be stored by theSegmentPackager
RTR ("ready-to-receive") property.- Returns:
- The builder for applying multiple build operations.
-
withReadyToReceiveTimeoutInMs
Sets the number for the RTR ("ready-to-receive") timeout property.- Specified by:
withReadyToReceiveTimeoutInMs
in interfaceReadyToReceiveTimeoutInMsAccessor.ReadyToReceiveTimeoutInMsBuilder<TransmissionMetrics.Builder>
- Parameters:
aReadyToReceiveTimeoutInMs
- The RTR ("ready-to-receive") timeout in milliseconds to be stored by the RTR timeout property.- Returns:
- The builder for applying multiple build operations.
-
withReadyToSendRetryNumber
Sets the number of retries for the RTS ("ready-to-send") retry number. A RTS retry number is the overall number of retries to use when counting retries.- Specified by:
withReadyToSendRetryNumber
in interfaceReadyToSendRetryNumberAccessor.ReadyToSendRetryNumberBuilder<TransmissionMetrics.Builder>
- Parameters:
aReadyToSendRetryNumber
- The number of retries to be stored by the number of RTS ("ready-to-send") retry number.- Returns:
- The builder for applying multiple build operations.
-
withReadyToSendSegmentPackager
public TransmissionMetrics.Builder withReadyToSendSegmentPackager(SegmentPackager aReadyToSendSegmentPackager) Sets theSegmentPackager
RTS ("ready-to-send") property.- Specified by:
withReadyToSendSegmentPackager
in interfaceReadyToSendSegmentPackagerAccessor.ReadyToSendSegmentPackagerBuilder<TransmissionMetrics.Builder>
- Parameters:
aReadyToSendSegmentPackager
- TheSegmentPackager
to be stored by theSegmentPackager
RTS ("ready-to-send") property.- Returns:
- The builder for applying multiple build operations.
-
withReadyToSendTimeoutInMs
Sets the number for the RTS ("ready-to-send") timeout property.- Specified by:
withReadyToSendTimeoutInMs
in interfaceReadyToSendTimeoutInMsAccessor.ReadyToSendTimeoutInMsBuilder<TransmissionMetrics.Builder>
- Parameters:
aReadyToSendTimeoutInMs
- The RTS ("ready-to-send") timeout in milliseconds to be stored by the RTS timeout property.- Returns:
- The builder for applying multiple build operations.
-
withSequenceNumberConcatenateMode
public TransmissionMetrics.Builder withSequenceNumberConcatenateMode(org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode) Sets theConcatenateMode
for the sequence numberConcatenateMode
property.- Specified by:
withSequenceNumberConcatenateMode
in interfaceSequenceNumberConcatenateModeAccessor.SequenceNumberConcatenateModeBuilder<TransmissionMetrics.Builder>
- Parameters:
aSequenceNumberConcatenateMode
- TheConcatenateMode
to be stored by the sequence numberConcatenateMode
property.- Returns:
- The builder for applying multiple build operations.
-
withSequenceNumberInitValue
Sets the sequence number initial value for the sequence number initial value property.- Specified by:
withSequenceNumberInitValue
in interfaceSequenceNumberInitValueAccessor.SequenceNumberInitValueBuilder<TransmissionMetrics.Builder>
- Parameters:
aSequenceNumberInitValue
- The sequence number initial value to be stored by the sequence number initial value property.- Returns:
- The builder for applying multiple build operations.
-
withSequenceNumberWidth
Sets the sequence number width (in bytes) for the sequence number width (in bytes) property.- Specified by:
withSequenceNumberWidth
in interfaceSequenceNumberWidthAccessor.SequenceNumberWidthBuilder<TransmissionMetrics.Builder>
- Parameters:
aSequenceNumberWidth
- The sequence number width (in bytes) to be stored by the sequence number width (in bytes) property.- Returns:
- The builder for applying multiple build operations.
-
withTransmissionRetryNumber
Sets the number of retries for the transmission retry number. A transmission retry number is the overall number of retries to use when counting retries.- Specified by:
withTransmissionRetryNumber
in interfaceTransmissionRetryNumberAccessor.TransmissionRetryNumberBuilder<TransmissionMetrics.Builder>
- Parameters:
aTransmissionRetryNumber
- The number of retries to be stored by the number of transmission retry number.- Returns:
- The builder for applying multiple build operations.
-
withTransmissionTimeoutInMs
Sets the number for the transmission timeout property.- Specified by:
withTransmissionTimeoutInMs
in interfaceTransmissionTimeoutInMsAccessor.TransmissionTimeoutInMsBuilder<TransmissionMetrics.Builder>
- Parameters:
aTransmissionTimeoutInMs
- The transmission timeout in milliseconds to be stored by the transmission timeout property.- Returns:
- The builder for applying multiple build operations.
-
withWriteTimeoutInMs
- Specified by:
withWriteTimeoutInMs
in interfaceorg.refcodes.mixin.WriteTimeoutInMsAccessor.WriteTimeoutInMsBuilder<TransmissionMetrics.Builder>
-
withPongMagicBytes
Sets the magic bytes for the pong magic bytes property.- Specified by:
withPongMagicBytes
in interfacePongMagicBytesAccessor.PongMagicBytesBuilder<TransmissionMetrics.Builder>
- Parameters:
aPongMagicBytes
- The magic bytes to be stored by the pong magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withPingMagicBytes
Sets the magic bytes for the ping magic bytes property.- Specified by:
withPingMagicBytes
in interfacePingMagicBytesAccessor.PingMagicBytesBuilder<TransmissionMetrics.Builder>
- Parameters:
aPingMagicBytes
- The magic bytes to be stored by the ping magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withIoHeuristicsTimeToLiveInMs
Sets the number for the IO heuristics TTL (time to live) property.- Specified by:
withIoHeuristicsTimeToLiveInMs
in interfaceIoHeuristicsTimeToLiveInMsAccessor.IoHeuristicsTimeToLiveInMsBuilder<TransmissionMetrics.Builder>
- Parameters:
aIoHeuristicsTimeToLiveInMs
- The IO heuristics TTL (time to live) in milliseconds to be stored by the IO heuristics TTL (time to live) property.- Returns:
- The builder for applying multiple build operations.
-
build
Builds theTransmissionMetrics
instance from this builder's settings.- Returns:
- The accordingly built
TransmissionMetrics
instance.
-