- java.lang.Object
-
- org.refcodes.serial.TransmissionMetricsImpl
-
- All Implemented Interfaces:
org.refcodes.mixin.BlockSizeAccessor
,org.refcodes.mixin.EncodingAccessor<Charset>
,org.refcodes.mixin.ReadTimeoutInMsAccessor
,org.refcodes.mixin.WriteTimeoutInMsAccessor
,org.refcodes.numerical.CrcAlgorithmAccessor
,org.refcodes.numerical.CrcChecksumConcatenateModeAccessor
,org.refcodes.numerical.CrcChecksumValidationModeAccessor
,org.refcodes.numerical.EndianessAccessor
,AcknowledgeMagicBytesAccessor
,AcknowledgeRetryNumberAccessor
,AcknowledgeSegmentPackagerAccessor
,AcknowledgeTimeoutInMsAccessor
,ClearToSendMagicBytesAccessor
,ClearToSendSegmentPackagerAccessor
,ClearToSendTimeoutInMsAccessor
,EndOfStringByteAccessor
,EnquiryStandbyTimeInMsAccessor
,LengthWidthAccessor
,MagicBytesLengthAccessor
,PacketLengthWidthAccessor
,PacketMagicBytesAccessor
,PacketSegmentPackagerAccessor
,ReadyToReceiveMagicBytesAccessor
,ReadyToReceiveRetryNumberAccessor
,ReadyToReceiveSegmentPackagerAccessor
,ReadyToReceiveTimeoutInMsAccessor
,ReadyToSendMagicBytesAccessor
,ReadyToSendRetryNumberAccessor
,ReadyToSendSegmentPackagerAccessor
,ReadyToSendTimeoutInMsAccessor
,SequenceNumberConcatenateModeAccessor
,SequenceNumberInitValueAccessor
,SequenceNumberWidthAccessor
,TransmissionMetrics
,TransmissionRetryNumberAccessor
,TransmissionTimeoutInMsAccessor
public class TransmissionMetricsImpl extends Object implements TransmissionMetrics
TheTransmissionMetricsImpl
class implements theTransmissionMetrics
and enriches it with builder functionality as of the builder pattern. Using aTransmissionMetricsImpl
you can use a single configuration instance to initialize the various kinds of building blocks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransmissionMetricsImpl.Builder
Builder to buildTransmissionMetricsImpl
.-
Nested classes/interfaces inherited from interface org.refcodes.serial.AcknowledgeMagicBytesAccessor
AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder<B extends AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder<B>>, AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesMutator, AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.AcknowledgeRetryNumberAccessor
AcknowledgeRetryNumberAccessor.AcknowledgeRetryNumberBuilder<B extends AcknowledgeRetryNumberAccessor.AcknowledgeRetryNumberBuilder<B>>, AcknowledgeRetryNumberAccessor.AcknowledgeRetryNumberMutator, AcknowledgeRetryNumberAccessor.AcknowledgeRetryNumberProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.AcknowledgeSegmentPackagerAccessor
AcknowledgeSegmentPackagerAccessor.AcknowledgeSegmentPackagerBuilder<B extends AcknowledgeSegmentPackagerAccessor.AcknowledgeSegmentPackagerBuilder<B>>, AcknowledgeSegmentPackagerAccessor.AcknowledgeSegmentPackagerMutator, AcknowledgeSegmentPackagerAccessor.AcknowledgeSegmentPackagerProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.AcknowledgeTimeoutInMsAccessor
AcknowledgeTimeoutInMsAccessor.AcknowledgeTimeoutInMsBuilder<B extends AcknowledgeTimeoutInMsAccessor.AcknowledgeTimeoutInMsBuilder<B>>, AcknowledgeTimeoutInMsAccessor.AcknowledgeTimeoutInMsMutator, AcknowledgeTimeoutInMsAccessor.AcknowledgeTimeoutInMsProperty
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.BlockSizeAccessor
org.refcodes.mixin.BlockSizeAccessor.BlockSizeBuilder<B extends org.refcodes.mixin.BlockSizeAccessor.BlockSizeBuilder<B>>, org.refcodes.mixin.BlockSizeAccessor.BlockSizeMutator, org.refcodes.mixin.BlockSizeAccessor.BlockSizeProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.ClearToSendMagicBytesAccessor
ClearToSendMagicBytesAccessor.ClearToSendMagicBytesBuilder<B extends ClearToSendMagicBytesAccessor.ClearToSendMagicBytesBuilder<B>>, ClearToSendMagicBytesAccessor.ClearToSendMagicBytesMutator, ClearToSendMagicBytesAccessor.ClearToSendMagicBytesProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.ClearToSendSegmentPackagerAccessor
ClearToSendSegmentPackagerAccessor.ClearToSendSegmentPackagerBuilder<B extends ClearToSendSegmentPackagerAccessor.ClearToSendSegmentPackagerBuilder<B>>, ClearToSendSegmentPackagerAccessor.ClearToSendSegmentPackagerMutator, ClearToSendSegmentPackagerAccessor.ClearToSendSegmentPackagerProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.ClearToSendTimeoutInMsAccessor
ClearToSendTimeoutInMsAccessor.ClearToSendTimeoutInMsBuilder<B extends ClearToSendTimeoutInMsAccessor.ClearToSendTimeoutInMsBuilder<B>>, ClearToSendTimeoutInMsAccessor.ClearToSendTimeoutInMsMutator, ClearToSendTimeoutInMsAccessor.ClearToSendTimeoutInMsProperty
-
Nested classes/interfaces inherited from interface org.refcodes.numerical.CrcAlgorithmAccessor
org.refcodes.numerical.CrcAlgorithmAccessor.CrcAlgorithmBuilder<B extends org.refcodes.numerical.CrcAlgorithmAccessor.CrcAlgorithmBuilder<B>>, org.refcodes.numerical.CrcAlgorithmAccessor.CrcAlgorithmMutator, org.refcodes.numerical.CrcAlgorithmAccessor.CrcAlgorithmProperty
-
Nested classes/interfaces inherited from interface org.refcodes.numerical.CrcChecksumConcatenateModeAccessor
org.refcodes.numerical.CrcChecksumConcatenateModeAccessor.CrcChecksumConcatenateModeBuilder<B extends org.refcodes.numerical.CrcChecksumConcatenateModeAccessor.CrcChecksumConcatenateModeBuilder<B>>, org.refcodes.numerical.CrcChecksumConcatenateModeAccessor.CrcChecksumConcatenateModeMutator, org.refcodes.numerical.CrcChecksumConcatenateModeAccessor.CrcChecksumConcatenateModeProperty
-
Nested classes/interfaces inherited from interface org.refcodes.numerical.CrcChecksumValidationModeAccessor
org.refcodes.numerical.CrcChecksumValidationModeAccessor.CrcChecksumValidationModeBuilder<B extends org.refcodes.numerical.CrcChecksumValidationModeAccessor.CrcChecksumValidationModeBuilder<B>>, org.refcodes.numerical.CrcChecksumValidationModeAccessor.CrcChecksumValidationModeMutator, org.refcodes.numerical.CrcChecksumValidationModeAccessor.CrcChecksumValidationModeProperty
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.EncodingAccessor
org.refcodes.mixin.EncodingAccessor.EncodingBuilder<E extends Object,B extends org.refcodes.mixin.EncodingAccessor.EncodingBuilder<E,B>>, org.refcodes.mixin.EncodingAccessor.EncodingMutator<E extends Object>, org.refcodes.mixin.EncodingAccessor.EncodingProperty<E extends Object>
-
Nested classes/interfaces inherited from interface org.refcodes.numerical.EndianessAccessor
org.refcodes.numerical.EndianessAccessor.EndianessBuilder<B extends org.refcodes.numerical.EndianessAccessor.EndianessBuilder<B>>, org.refcodes.numerical.EndianessAccessor.EndianessMutator, org.refcodes.numerical.EndianessAccessor.EndianessProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.EndOfStringByteAccessor
EndOfStringByteAccessor.EndOfStringByteBuilder<B extends EndOfStringByteAccessor.EndOfStringByteBuilder<B>>, EndOfStringByteAccessor.EndOfStringByteMutator, EndOfStringByteAccessor.EndOfStringByteProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.EnquiryStandbyTimeInMsAccessor
EnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsBuilder<B extends EnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsBuilder<B>>, EnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsMutator, EnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.LengthWidthAccessor
LengthWidthAccessor.LengthWidthBuilder<B extends LengthWidthAccessor.LengthWidthBuilder<B>>, LengthWidthAccessor.LengthWidthMutator, LengthWidthAccessor.LengthWidthProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.MagicBytesLengthAccessor
MagicBytesLengthAccessor.MagicBytesLengthBuilder<B extends MagicBytesLengthAccessor.MagicBytesLengthBuilder<B>>, MagicBytesLengthAccessor.MagicBytesLengthMutator, MagicBytesLengthAccessor.MagicBytesLengthProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.PacketLengthWidthAccessor
PacketLengthWidthAccessor.PacketLengthWidthBuilder<B extends PacketLengthWidthAccessor.PacketLengthWidthBuilder<B>>, PacketLengthWidthAccessor.PacketLengthWidthMutator, PacketLengthWidthAccessor.PacketLengthWidthProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.PacketMagicBytesAccessor
PacketMagicBytesAccessor.PacketMagicBytesBuilder<B extends PacketMagicBytesAccessor.PacketMagicBytesBuilder<B>>, PacketMagicBytesAccessor.PacketMagicBytesMutator, PacketMagicBytesAccessor.PacketMagicBytesProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.PacketSegmentPackagerAccessor
PacketSegmentPackagerAccessor.PacketSegmentPackagerBuilder<B extends PacketSegmentPackagerAccessor.PacketSegmentPackagerBuilder<B>>, PacketSegmentPackagerAccessor.PacketSegmentPackagerMutator, PacketSegmentPackagerAccessor.PacketSegmentPackagerProperty
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ReadTimeoutInMsAccessor
org.refcodes.mixin.ReadTimeoutInMsAccessor.ReadTimeoutInMsBuilder<B extends org.refcodes.mixin.ReadTimeoutInMsAccessor.ReadTimeoutInMsBuilder<B>>, org.refcodes.mixin.ReadTimeoutInMsAccessor.ReadTimeoutInMsMutator, org.refcodes.mixin.ReadTimeoutInMsAccessor.ReadTimeoutInMsProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.ReadyToReceiveMagicBytesAccessor
ReadyToReceiveMagicBytesAccessor.ReadyToReceiveMagicBytesBuilder<B extends ReadyToReceiveMagicBytesAccessor.ReadyToReceiveMagicBytesBuilder<B>>, ReadyToReceiveMagicBytesAccessor.ReadyToReceiveMagicBytesMutator, ReadyToReceiveMagicBytesAccessor.ReadyToReceiveMagicBytesProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.ReadyToReceiveRetryNumberAccessor
ReadyToReceiveRetryNumberAccessor.ReadyToReceiveRetryNumberBuilder<B extends ReadyToReceiveRetryNumberAccessor.ReadyToReceiveRetryNumberBuilder<B>>, ReadyToReceiveRetryNumberAccessor.ReadyToReceiveRetryNumberMutator, ReadyToReceiveRetryNumberAccessor.ReadyToReceiveRetryNumberProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.ReadyToReceiveSegmentPackagerAccessor
ReadyToReceiveSegmentPackagerAccessor.ReadyToReceiveSegmentPackagerBuilder<B extends ReadyToReceiveSegmentPackagerAccessor.ReadyToReceiveSegmentPackagerBuilder<B>>, ReadyToReceiveSegmentPackagerAccessor.ReadyToReceiveSegmentPackagerMutator, ReadyToReceiveSegmentPackagerAccessor.ReadyToReceiveSegmentPackagerProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.ReadyToReceiveTimeoutInMsAccessor
ReadyToReceiveTimeoutInMsAccessor.ReadyToReceiveTimeoutInMsBuilder<B extends ReadyToReceiveTimeoutInMsAccessor.ReadyToReceiveTimeoutInMsBuilder<B>>, ReadyToReceiveTimeoutInMsAccessor.ReadyToReceiveTimeoutInMsMutator, ReadyToReceiveTimeoutInMsAccessor.ReadyToReceiveTimeoutInMsProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.ReadyToSendMagicBytesAccessor
ReadyToSendMagicBytesAccessor.ReadyToSendMagicBytesBuilder<B extends ReadyToSendMagicBytesAccessor.ReadyToSendMagicBytesBuilder<B>>, ReadyToSendMagicBytesAccessor.ReadyToSendMagicBytesMutator, ReadyToSendMagicBytesAccessor.ReadyToSendMagicBytesProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.ReadyToSendRetryNumberAccessor
ReadyToSendRetryNumberAccessor.ReadyToSendRetryNumberBuilder<B extends ReadyToSendRetryNumberAccessor.ReadyToSendRetryNumberBuilder<B>>, ReadyToSendRetryNumberAccessor.ReadyToSendRetryNumberMutator, ReadyToSendRetryNumberAccessor.ReadyToSendRetryNumberProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.ReadyToSendSegmentPackagerAccessor
ReadyToSendSegmentPackagerAccessor.ReadyToSendSegmentPackagerBuilder<B extends ReadyToSendSegmentPackagerAccessor.ReadyToSendSegmentPackagerBuilder<B>>, ReadyToSendSegmentPackagerAccessor.ReadyToSendSegmentPackagerMutator, ReadyToSendSegmentPackagerAccessor.ReadyToSendSegmentPackagerProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.ReadyToSendTimeoutInMsAccessor
ReadyToSendTimeoutInMsAccessor.ReadyToSendTimeoutInMsBuilder<B extends ReadyToSendTimeoutInMsAccessor.ReadyToSendTimeoutInMsBuilder<B>>, ReadyToSendTimeoutInMsAccessor.ReadyToSendTimeoutInMsMutator, ReadyToSendTimeoutInMsAccessor.ReadyToSendTimeoutInMsProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.SequenceNumberConcatenateModeAccessor
SequenceNumberConcatenateModeAccessor.SequenceNumberConcatenateModeBuilder<B extends SequenceNumberConcatenateModeAccessor.SequenceNumberConcatenateModeBuilder<B>>, SequenceNumberConcatenateModeAccessor.SequenceNumberConcatenateModeMutator, SequenceNumberConcatenateModeAccessor.SequenceNumberConcatenateModeProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.SequenceNumberInitValueAccessor
SequenceNumberInitValueAccessor.SequenceNumberInitValueBuilder<B extends SequenceNumberInitValueAccessor.SequenceNumberInitValueBuilder<B>>, SequenceNumberInitValueAccessor.SequenceNumberInitValueMutator, SequenceNumberInitValueAccessor.SequenceNumberInitValueProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.SequenceNumberWidthAccessor
SequenceNumberWidthAccessor.SequenceNumberWidthBuilder<B extends SequenceNumberWidthAccessor.SequenceNumberWidthBuilder<B>>, SequenceNumberWidthAccessor.SequenceNumberWidthMutator, SequenceNumberWidthAccessor.SequenceNumberWidthProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.TransmissionRetryNumberAccessor
TransmissionRetryNumberAccessor.TransmissionRetryNumberBuilder<B extends TransmissionRetryNumberAccessor.TransmissionRetryNumberBuilder<B>>, TransmissionRetryNumberAccessor.TransmissionRetryNumberMutator, TransmissionRetryNumberAccessor.TransmissionRetryNumberProperty
-
Nested classes/interfaces inherited from interface org.refcodes.serial.TransmissionTimeoutInMsAccessor
TransmissionTimeoutInMsAccessor.TransmissionTimeoutInMsBuilder<B extends TransmissionTimeoutInMsAccessor.TransmissionTimeoutInMsBuilder<B>>, TransmissionTimeoutInMsAccessor.TransmissionTimeoutInMsMutator, TransmissionTimeoutInMsAccessor.TransmissionTimeoutInMsProperty
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.WriteTimeoutInMsAccessor
org.refcodes.mixin.WriteTimeoutInMsAccessor.WriteTimeoutInMsBuilder<B extends org.refcodes.mixin.WriteTimeoutInMsAccessor.WriteTimeoutInMsBuilder<B>>, org.refcodes.mixin.WriteTimeoutInMsAccessor.WriteTimeoutInMsMutator, org.refcodes.mixin.WriteTimeoutInMsAccessor.WriteTimeoutInMsProperty
-
-
Field Summary
-
Fields inherited from interface org.refcodes.serial.TransmissionMetrics
DEFAULT_ACKNOWLEDGE_MAGIC_BYTES, DEFAULT_ACKNOWLEDGE_RETRY_NUMBER, DEFAULT_ACKNOWLEDGE_TIMEOUT_IN_MS, DEFAULT_BLOCK_SIZE, DEFAULT_CLEAR_TO_SEND_MAGIC_BYTES, DEFAULT_CLEAR_TO_SEND_TIMEOUT_IN_MS, DEFAULT_CRC_ALGORITHM, DEFAULT_CRC_CHECKSUM_CONCATENATE_MODE, DEFAULT_CRC_CHECKSUM_VALIDATION_MODE, DEFAULT_ENCODING, DEFAULT_END_OF_STRING_BYTE, DEFAULT_ENDIANESS, DEFAULT_ENQUIERY_STRANDBY_TIME_IN_MS, DEFAULT_LAST_PACKET_MAGIC_BYTES, DEFAULT_LENGTH_WIDTH, DEFAULT_MAGIC_BYTES_LENGTH, DEFAULT_PACKET_MAGIC_BYTES, DEFAULT_READ_TIMEOUT_IN_MS, DEFAULT_READY_TO_RECEIVE_MAGIC_BYTES, DEFAULT_READY_TO_RECEIVE_RETRY_NUMBER, DEFAULT_READY_TO_RECEIVE_TIMEOUT_IN_MS, DEFAULT_READY_TO_SEND_MAGIC_BYTES, DEFAULT_READY_TO_SEND_RETRY_NUMBER, DEFAULT_READY_TO_SEND_TIMEOUT_IN_MS, DEFAULT_SEQUENCE_NUMBER_CONCATENATE_MODE, DEFAULT_SEQUENCE_NUMBER_INIT_VALUE, DEFAULT_SEQUENCE_NUMBER_WIDTH, DEFAULT_TRANSMISSION_RETRY_NUMBER, DEFAULT_TRANSMISSION_TIMEOUT_IN_MS, DEFAULT_TRUNCATE_LENGTH_WIDTH, DEFAULT_WRITE_TIMEOUT_IN_MS
-
-
Constructor Summary
Constructors Constructor Description TransmissionMetricsImpl()
Creates an instance of theTransmissionMetricsImpl
with default values being applied as defined in theTransmissionMetrics
interface.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransmissionMetricsImpl.Builder
builder()
Creates builder to buildTransmissionMetricsImpl
.byte[]
getAcknowledgeMagicBytes()
Retrieves the magic bytes from the acknowledge magic bytes property.int
getAcknowledgeRetryNumber()
Retrieves the number of retries from the acknowledge retry number.SegmentPackager
getAcknowledgeSegmentPackager()
Retrieves theSegmentPackager
ACK property.long
getAcknowledgeTimeoutInMs()
The acknowledge timeout attribute in milliseconds.int
getBlockSize()
byte[]
getClearToSendMagicBytes()
Retrieves the magic bytes from the CTS ("clear-to-send") magic bytes property.SegmentPackager
getClearToSendSegmentPackager()
Retrieves theSegmentPackager
CTS ("clear-to-send") property.long
getClearToSendTimeoutInMs()
The CTS ("clear-to-send") timeout attribute in milliseconds.org.refcodes.numerical.CrcAlgorithm
getCrcAlgorithm()
org.refcodes.mixin.ConcatenateMode
getCrcChecksumConcatenateMode()
org.refcodes.numerical.ChecksumValidationMode
getCrcChecksumValidationMode()
Charset
getEncoding()
org.refcodes.numerical.Endianess
getEndianess()
byte
getEndOfStringByte()
Retrieves the end of string byte from the end of string byte property.long
getEnquiryStandbyTimeInMs()
The ENQ ("enquiry") timeout attribute in milliseconds.int
getLengthWidth()
Retrieves the length width (in bytes) from the length width (in bytes) property.int
getMagicBytesLength()
Retrieves the magic bytes length from the magic bytes magic bytes length property.int
getPacketLengthWidth()
Retrieves the packet length width (in bytes) from the packet length width (in bytes) property.byte[]
getPacketMagicBytes()
Retrieves the magic bytes from the packet magic bytes property.SegmentPackager
getPacketSegmentPackager()
Retrieves theSegmentPackager
from the packetSegmentPackager
property.long
getReadTimeoutInMs()
byte[]
getReadyToReceiveMagicBytes()
Retrieves the magic bytes from the RTR ("ready-to-receive") magic bytes property.int
getReadyToReceiveRetryNumber()
Retrieves the number of retries from the RTR ("ready-to-receive") retry number.SegmentPackager
getReadyToReceiveSegmentPackager()
Retrieves theSegmentPackager
RTR ("ready-to-receive") property.long
getReadyToReceiveTimeoutInMs()
The RTR ("ready-to-receive") timeout attribute in milliseconds.byte[]
getReadyToSendMagicBytes()
Retrieves the magic bytes from the RTS ("ready-to-send") magic bytes property.int
getReadyToSendRetryNumber()
Retrieves the number of retries from the RTS ("ready-to-send") retry number.SegmentPackager
getReadyToSendSegmentPackager()
Retrieves theSegmentPackager
RTS ("ready-to-send") property.long
getReadyToSendTimeoutInMs()
The RTS ("ready-to-send") timeout attribute in milliseconds.org.refcodes.mixin.ConcatenateMode
getSequenceNumberConcatenateMode()
Retrieves theConcatenateMode
from the sequence numberConcatenateMode
property.int
getSequenceNumberInitValue()
Retrieves the sequence number initial value from the sequence number initial value property.int
getSequenceNumberWidth()
Retrieves the sequence number width (in bytes) from the sequence number width (in bytes) property.int
getTransmissionRetryNumber()
Retrieves the number of retries from the transmission retry number.long
getTransmissionTimeoutInMs()
The transmission timeout attribute in milliseconds.long
getWriteTimeoutInMs()
-
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.TransmissionMetrics
toAckSegmentPackager, toPacketSegmentPackager
-
-
-
-
Constructor Detail
-
TransmissionMetricsImpl
public TransmissionMetricsImpl()
Creates an instance of theTransmissionMetricsImpl
with default values being applied as defined in theTransmissionMetrics
interface.
-
-
Method Detail
-
getPacketLengthWidth
public int getPacketLengthWidth()
Retrieves the packet length width (in bytes) from the packet length width (in bytes) property.- Specified by:
getPacketLengthWidth
in interfacePacketLengthWidthAccessor
- Returns:
- The packet length width (in bytes) stored by the packet length width (in bytes) property.
-
getAcknowledgeMagicBytes
public byte[] getAcknowledgeMagicBytes()
Retrieves the magic bytes from the acknowledge magic bytes property.- Specified by:
getAcknowledgeMagicBytes
in interfaceAcknowledgeMagicBytesAccessor
- Returns:
- The magic bytes stored by the acknowledge magic bytes property.
-
getAcknowledgeRetryNumber
public int getAcknowledgeRetryNumber()
Retrieves the number of retries from the acknowledge retry number. A acknowledge retry number is the overall number of retries to use when counting retries.- Specified by:
getAcknowledgeRetryNumber
in interfaceAcknowledgeRetryNumberAccessor
- Returns:
- The number of retries stored by the acknowledge retry number.
-
getAcknowledgeSegmentPackager
public SegmentPackager getAcknowledgeSegmentPackager()
Retrieves theSegmentPackager
ACK property.- Specified by:
getAcknowledgeSegmentPackager
in interfaceAcknowledgeSegmentPackagerAccessor
- Returns:
- The
SegmentPackager
stored by the ACKSegmentPackager
property.
-
getAcknowledgeTimeoutInMs
public long getAcknowledgeTimeoutInMs()
The acknowledge timeout attribute in milliseconds.- Specified by:
getAcknowledgeTimeoutInMs
in interfaceAcknowledgeTimeoutInMsAccessor
- Returns:
- An integer with the timeout in milliseconds.
-
getBlockSize
public int getBlockSize()
- Specified by:
getBlockSize
in interfaceorg.refcodes.mixin.BlockSizeAccessor
-
getClearToSendMagicBytes
public byte[] getClearToSendMagicBytes()
Retrieves the magic bytes from the CTS ("clear-to-send") magic bytes property.- Specified by:
getClearToSendMagicBytes
in interfaceClearToSendMagicBytesAccessor
- Returns:
- The magic bytes stored by the CTS ("clear-to-send") magic bytes property.
-
getClearToSendSegmentPackager
public SegmentPackager getClearToSendSegmentPackager()
Retrieves theSegmentPackager
CTS ("clear-to-send") property.- Specified by:
getClearToSendSegmentPackager
in interfaceClearToSendSegmentPackagerAccessor
- Returns:
- The
SegmentPackager
stored by the CTS ("clear-to-send")SegmentPackager
property.
-
getClearToSendTimeoutInMs
public long getClearToSendTimeoutInMs()
The CTS ("clear-to-send") timeout attribute in milliseconds.- Specified by:
getClearToSendTimeoutInMs
in interfaceClearToSendTimeoutInMsAccessor
- Returns:
- An integer with the CTS ("clear-to-send") timeout in milliseconds.
-
getCrcAlgorithm
public org.refcodes.numerical.CrcAlgorithm getCrcAlgorithm()
- Specified by:
getCrcAlgorithm
in interfaceorg.refcodes.numerical.CrcAlgorithmAccessor
-
getCrcChecksumConcatenateMode
public org.refcodes.mixin.ConcatenateMode getCrcChecksumConcatenateMode()
- Specified by:
getCrcChecksumConcatenateMode
in interfaceorg.refcodes.numerical.CrcChecksumConcatenateModeAccessor
-
getCrcChecksumValidationMode
public org.refcodes.numerical.ChecksumValidationMode getCrcChecksumValidationMode()
- Specified by:
getCrcChecksumValidationMode
in interfaceorg.refcodes.numerical.CrcChecksumValidationModeAccessor
-
getEncoding
public Charset getEncoding()
- Specified by:
getEncoding
in interfaceorg.refcodes.mixin.EncodingAccessor<Charset>
-
getEndianess
public org.refcodes.numerical.Endianess getEndianess()
- Specified by:
getEndianess
in interfaceorg.refcodes.numerical.EndianessAccessor
-
getEndOfStringByte
public byte getEndOfStringByte()
Retrieves the end of string byte from the end of string byte property.- Specified by:
getEndOfStringByte
in interfaceEndOfStringByteAccessor
- Returns:
- The end of string byte stored by the end of string byte property.
-
getEnquiryStandbyTimeInMs
public long getEnquiryStandbyTimeInMs()
The ENQ ("enquiry") timeout attribute in milliseconds.- Specified by:
getEnquiryStandbyTimeInMs
in interfaceEnquiryStandbyTimeInMsAccessor
- Returns:
- An integer with the ENQ ("enquiry") timeout in milliseconds.
-
getLengthWidth
public int getLengthWidth()
Retrieves the length width (in bytes) from the length width (in bytes) property.- Specified by:
getLengthWidth
in interfaceLengthWidthAccessor
- Returns:
- The length width (in bytes) stored by the length width (in bytes) property.
-
getMagicBytesLength
public int getMagicBytesLength()
Retrieves the magic bytes length from the magic bytes magic bytes length property.- Specified by:
getMagicBytesLength
in interfaceMagicBytesLengthAccessor
- Returns:
- The magic bytes length stored by the magic bytes magic bytes length property.
-
getPacketMagicBytes
public byte[] getPacketMagicBytes()
Retrieves the magic bytes from the packet magic bytes property.- Specified by:
getPacketMagicBytes
in interfacePacketMagicBytesAccessor
- Returns:
- The magic bytes stored by the packet magic bytes property.
-
getPacketSegmentPackager
public SegmentPackager getPacketSegmentPackager()
Retrieves theSegmentPackager
from the packetSegmentPackager
property.- Specified by:
getPacketSegmentPackager
in interfacePacketSegmentPackagerAccessor
- Returns:
- The
SegmentPackager
stored by the packetSegmentPackager
property.
-
getReadTimeoutInMs
public long getReadTimeoutInMs()
- Specified by:
getReadTimeoutInMs
in interfaceorg.refcodes.mixin.ReadTimeoutInMsAccessor
-
getReadyToReceiveMagicBytes
public byte[] getReadyToReceiveMagicBytes()
Retrieves the magic bytes from the RTR ("ready-to-receive") magic bytes property.- Specified by:
getReadyToReceiveMagicBytes
in interfaceReadyToReceiveMagicBytesAccessor
- Returns:
- The magic bytes stored by the RTR ("ready-to-receive") magic bytes property.
-
getReadyToReceiveRetryNumber
public int getReadyToReceiveRetryNumber()
Retrieves the number of retries from the RTR ("ready-to-receive") retry number. A RTR retry number is the overall number of retries to use when counting retries.- Specified by:
getReadyToReceiveRetryNumber
in interfaceReadyToReceiveRetryNumberAccessor
- Returns:
- The number of retries stored by the RTR ("ready-to-receive") retry number.
-
getReadyToReceiveSegmentPackager
public SegmentPackager getReadyToReceiveSegmentPackager()
Retrieves theSegmentPackager
RTR ("ready-to-receive") property.- Specified by:
getReadyToReceiveSegmentPackager
in interfaceReadyToReceiveSegmentPackagerAccessor
- Returns:
- The
SegmentPackager
stored by the RTR ("ready-to-receive")SegmentPackager
property.
-
getReadyToReceiveTimeoutInMs
public long getReadyToReceiveTimeoutInMs()
The RTR ("ready-to-receive") timeout attribute in milliseconds.- Specified by:
getReadyToReceiveTimeoutInMs
in interfaceReadyToReceiveTimeoutInMsAccessor
- Returns:
- An integer with the RTR ("ready-to-receive") timeout in milliseconds.
-
getReadyToSendMagicBytes
public byte[] getReadyToSendMagicBytes()
Retrieves the magic bytes from the RTS ("ready-to-send") magic bytes property.- Specified by:
getReadyToSendMagicBytes
in interfaceReadyToSendMagicBytesAccessor
- Returns:
- The magic bytes stored by the RTS ("ready-to-send") magic bytes property.
-
getReadyToSendRetryNumber
public int getReadyToSendRetryNumber()
Retrieves the number of retries from the RTS ("ready-to-send") retry number. A RTS retry number is the overall number of retries to use when counting retries.- Specified by:
getReadyToSendRetryNumber
in interfaceReadyToSendRetryNumberAccessor
- Returns:
- The number of retries stored by the RTS ("ready-to-send") retry number.
-
getReadyToSendSegmentPackager
public SegmentPackager getReadyToSendSegmentPackager()
Retrieves theSegmentPackager
RTS ("ready-to-send") property.- Specified by:
getReadyToSendSegmentPackager
in interfaceReadyToSendSegmentPackagerAccessor
- Returns:
- The
SegmentPackager
stored by the RTS ("ready-to-send")SegmentPackager
property.
-
getReadyToSendTimeoutInMs
public long getReadyToSendTimeoutInMs()
The RTS ("ready-to-send") timeout attribute in milliseconds.- Specified by:
getReadyToSendTimeoutInMs
in interfaceReadyToSendTimeoutInMsAccessor
- Returns:
- An integer with the RTS ("ready-to-send") timeout in milliseconds.
-
getSequenceNumberConcatenateMode
public org.refcodes.mixin.ConcatenateMode getSequenceNumberConcatenateMode()
Retrieves theConcatenateMode
from the sequence numberConcatenateMode
property.- Specified by:
getSequenceNumberConcatenateMode
in interfaceSequenceNumberConcatenateModeAccessor
- Returns:
- The
ConcatenateMode
stored by the sequence numberConcatenateMode
property.
-
getSequenceNumberInitValue
public int getSequenceNumberInitValue()
Retrieves the sequence number initial value from the sequence number initial value property.- Specified by:
getSequenceNumberInitValue
in interfaceSequenceNumberInitValueAccessor
- Returns:
- The sequence number initial value stored by the sequence number initial value property.
-
getSequenceNumberWidth
public int getSequenceNumberWidth()
Retrieves the sequence number width (in bytes) from the sequence number width (in bytes) property.- Specified by:
getSequenceNumberWidth
in interfaceSequenceNumberWidthAccessor
- Returns:
- The sequence number width (in bytes) stored by the sequence number width (in bytes) property.
-
getTransmissionRetryNumber
public int getTransmissionRetryNumber()
Retrieves the number of retries from the transmission retry number. A transmission retry number is the overall number of retries to use when counting retries.- Specified by:
getTransmissionRetryNumber
in interfaceTransmissionRetryNumberAccessor
- Returns:
- The number of retries stored by the transmission retry number.
-
getTransmissionTimeoutInMs
public long getTransmissionTimeoutInMs()
The transmission timeout attribute in milliseconds.- Specified by:
getTransmissionTimeoutInMs
in interfaceTransmissionTimeoutInMsAccessor
- Returns:
- An integer with the timeout in milliseconds.
-
getWriteTimeoutInMs
public long getWriteTimeoutInMs()
- Specified by:
getWriteTimeoutInMs
in interfaceorg.refcodes.mixin.WriteTimeoutInMsAccessor
-
builder
public static TransmissionMetricsImpl.Builder builder()
Creates builder to buildTransmissionMetricsImpl
.- Returns:
- created builder
-
-