Class HandshakePortController.Builder<PM extends org.refcodes.serial.PortMetrics>

    • Method Detail

      • withReplyRetryNumber

        public HandshakePortController.Builder<PM> withReplyRetryNumber​(int aReplyRetryNumber)
        Sets the number of retries for the reply retry number. A reply retry number is the overall number of retries to use when counting retries.
        Specified by:
        withReplyRetryNumber in interface ReplyRetryNumberAccessor.ReplyRetryNumberBuilder<PM extends org.refcodes.serial.PortMetrics>
        Parameters:
        aReplyRetryNumber - The number of retries to be stored by the number of reply retry number.
        Returns:
        The builder for applying multiple build operations.
      • withAcknowledgeRetryNumber

        public HandshakePortController.Builder<PM> withAcknowledgeRetryNumber​(int aAcknowledgeRetryNumber)
        Specified by:
        withAcknowledgeRetryNumber in interface org.refcodes.serial.AcknowledgeRetryNumberAccessor.AcknowledgeRetryNumberBuilder<PM extends org.refcodes.serial.PortMetrics>
      • withAcknowledgeTimeoutInMs

        public HandshakePortController.Builder<PM> withAcknowledgeTimeoutInMs​(long aAcknowledgeTimeoutInMs)
        Specified by:
        withAcknowledgeTimeoutInMs in interface org.refcodes.serial.AcknowledgeTimeoutInMsAccessor.AcknowledgeTimeoutInMsBuilder<PM extends org.refcodes.serial.PortMetrics>
      • withCrcAlgorithm

        public HandshakePortController.Builder<PM> withCrcAlgorithm​(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm)
        Specified by:
        withCrcAlgorithm in interface org.refcodes.numerical.CrcAlgorithmAccessor.CrcAlgorithmBuilder<PM extends org.refcodes.serial.PortMetrics>
      • withChecksumValidationMode

        public HandshakePortController.Builder<PM> withChecksumValidationMode​(org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode)
        Specified by:
        withChecksumValidationMode in interface org.refcodes.numerical.ChecksumValidationModeAccessor.ChecksumValidationModeBuilder<PM extends org.refcodes.serial.PortMetrics>
      • withEndianess

        public HandshakePortController.Builder<PM> withEndianess​(org.refcodes.numerical.Endianess aEndianess)
        Specified by:
        withEndianess in interface org.refcodes.numerical.EndianessAccessor.EndianessBuilder<PM extends org.refcodes.serial.PortMetrics>
      • withSequenceNumberInitValue

        public HandshakePortController.Builder<PM> withSequenceNumberInitValue​(int aSequenceNumberInitValue)
        Specified by:
        withSequenceNumberInitValue in interface org.refcodes.serial.SequenceNumberInitValueAccessor.SequenceNumberInitValueBuilder<PM extends org.refcodes.serial.PortMetrics>
      • withSequenceNumberWidth

        public HandshakePortController.Builder<PM> withSequenceNumberWidth​(int aSequenceNumberWidth)
        Specified by:
        withSequenceNumberWidth in interface org.refcodes.serial.SequenceNumberWidthAccessor.SequenceNumberWidthBuilder<PM extends org.refcodes.serial.PortMetrics>
      • withInboundQueueCapacity

        public HandshakePortController.Builder<PM> withInboundQueueCapacity​(int aInboundQueueCapacity)
        Sets the queue capacity of unprocessed inbound messages.
        Parameters:
        aInboundQueueCapacity - The capacity of the inbound queue, any exceeding inbound transmissions are skipped.
        Returns:
        The HandshakePortController.Builder to chain other operations as of the builder pattern.