PM
- The actual PortMetrics
type to use.public static final class FullDuplexTxPortDecorator.Builder<PM extends PortMetrics> extends Object
FullDuplexTxPortDecorator
instance.Modifier and Type | Method | Description |
---|---|---|
FullDuplexTxPortDecorator<PM> |
build() |
Builds the.
|
FullDuplexTxPortDecorator.Builder<PM> |
withAcknowledgeMagicBytes(byte[] aAcknowledgeMagicBytes) |
Sets the according property for configuring the
FullDuplexTxPortDecorator upon invoking build() . |
FullDuplexTxPortDecorator.Builder<PM> |
withAcknowledgeRetryNumber(int aAcknowledgeRetryNumber) |
Sets the according property for configuring the
FullDuplexTxPortDecorator upon invoking build() . |
FullDuplexTxPortDecorator.Builder<PM> |
withAcknowledgeTimeoutInMs(long aAcknowledgeTimeoutInMs) |
Sets the according property for configuring the
FullDuplexTxPortDecorator upon invoking build() . |
FullDuplexTxPortDecorator.Builder<PM> |
withCrcAlgorithm(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) |
Sets the according property for configuring the
FullDuplexTxPortDecorator upon invoking build() . |
FullDuplexTxPortDecorator.Builder<PM> |
withCrcChecksumValidationMode(org.refcodes.numerical.ChecksumValidationMode aCrcChecksumValidationMode) |
Sets the according property for configuring the
FullDuplexTxPortDecorator upon invoking build() . |
FullDuplexTxPortDecorator.Builder<PM> |
withEndianess(org.refcodes.numerical.Endianess aEndianess) |
Sets the according property for configuring the
FullDuplexTxPortDecorator upon invoking build() . |
FullDuplexTxPortDecorator.Builder<PM> |
withExecutorService(ExecutorService aExecutorService) |
Sets the according property for configuring the
FullDuplexTxPortDecorator upon invoking build() . |
FullDuplexTxPortDecorator.Builder<PM> |
withPort(Port<PM> aPort) |
Sets the according property for configuring the
FullDuplexTxPortDecorator upon invoking build() . |
FullDuplexTxPortDecorator.Builder<PM> |
withSequenceNumberInitValue(int aSequenceNumberInitValue) |
Sets the according property for configuring the
FullDuplexTxPortDecorator upon invoking build() . |
FullDuplexTxPortDecorator.Builder<PM> |
withSequenceNumberWidth(int aSequenceNumberWidth) |
Sets the according property for configuring the
FullDuplexTxPortDecorator upon invoking build() . |
FullDuplexTxPortDecorator.Builder<PM> |
withTransmissionMagicBytes(byte[] aTransmissionMagicBytes) |
Sets the according property for configuring the
FullDuplexTxPortDecorator upon invoking build() . |
public FullDuplexTxPortDecorator.Builder<PM> withEndianess(org.refcodes.numerical.Endianess aEndianess)
FullDuplexTxPortDecorator
upon invoking build()
.aEndianess
- The Endianess
to use when calculating the
CRC checksum.FullDuplexTxPortDecorator.Builder
to chain other operations as of the
builder pattern.public FullDuplexTxPortDecorator.Builder<PM> withPort(Port<PM> aPort)
FullDuplexTxPortDecorator
upon invoking build()
.aPort
- the a portFullDuplexTxPortDecorator.Builder
to chain other operations as of the
builder pattern.public FullDuplexTxPortDecorator.Builder<PM> withTransmissionMagicBytes(byte[] aTransmissionMagicBytes)
FullDuplexTxPortDecorator
upon invoking build()
.aTransmissionMagicBytes
- The magic bytes identifying a regular
transmission (as of
FullDuplexTxPortDecorator.transmitSegment(Segment)
or
the like).FullDuplexTxPortDecorator.Builder
to chain other operations as of the
builder pattern.public FullDuplexTxPortDecorator.Builder<PM> withAcknowledgeMagicBytes(byte[] aAcknowledgeMagicBytes)
FullDuplexTxPortDecorator
upon invoking build()
.aAcknowledgeMagicBytes
- The ACK character to be used by the
return channel to transmit an ACK (acknowledge) response after
successful receiving a transmission.FullDuplexTxPortDecorator.Builder
to chain other operations as of the
builder pattern.public FullDuplexTxPortDecorator.Builder<PM> withAcknowledgeRetryNumber(int aAcknowledgeRetryNumber)
FullDuplexTxPortDecorator
upon invoking build()
.aAcknowledgeRetryNumber
- The number of retries waiting for an
ACK from the return channel.FullDuplexTxPortDecorator.Builder
to chain other operations as of the
builder pattern.public FullDuplexTxPortDecorator.Builder<PM> withAcknowledgeTimeoutInMs(long aAcknowledgeTimeoutInMs)
FullDuplexTxPortDecorator
upon invoking build()
.aAcknowledgeTimeoutInMs
- The timeout in milliseconds to pend
till the next retry.FullDuplexTxPortDecorator.Builder
to chain other operations as of the
builder pattern.public FullDuplexTxPortDecorator.Builder<PM> withSequenceNumberInitValue(int aSequenceNumberInitValue)
FullDuplexTxPortDecorator
upon invoking build()
.aSequenceNumberInitValue
- The initialization value for the
sequence number counter.FullDuplexTxPortDecorator.Builder
to chain other operations as of the
builder pattern.public FullDuplexTxPortDecorator.Builder<PM> withSequenceNumberWidth(int aSequenceNumberWidth)
FullDuplexTxPortDecorator
upon invoking build()
.aSequenceNumberWidth
- The width in bytes to be used for the
binary sequence number representation.FullDuplexTxPortDecorator.Builder
to chain other operations as of the
builder pattern.public FullDuplexTxPortDecorator.Builder<PM> withCrcAlgorithm(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm)
FullDuplexTxPortDecorator
upon invoking build()
.aCrcAlgorithm
- The CrcAlgorithm
to be used for CRC
checksum calculation.FullDuplexTxPortDecorator.Builder
to chain other operations as of the
builder pattern.public FullDuplexTxPortDecorator.Builder<PM> withCrcChecksumValidationMode(org.refcodes.numerical.ChecksumValidationMode aCrcChecksumValidationMode)
FullDuplexTxPortDecorator
upon invoking build()
.aCrcChecksumValidationMode
- The mode of operation when
validating provided CRC checksums against calculated ones.FullDuplexTxPortDecorator.Builder
to chain other operations as of the
builder pattern.public FullDuplexTxPortDecorator.Builder<PM> withExecutorService(ExecutorService aExecutorService)
FullDuplexTxPortDecorator
upon invoking build()
.aExecutorService
- The ExecutorService
to be used when
creating Thread
instances for handling input and
output data simultaneously.FullDuplexTxPortDecorator.Builder
to chain other operations as of the
builder pattern.public FullDuplexTxPortDecorator<PM> build()
Copyright © 2021. All rights reserved.