DECORATEE
- The decoratee type describing the according subclass
to be enriched.org.refcodes.mixin.ConcatenateModeAccessor.ConcatenateModeBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>
, org.refcodes.mixin.DecorateeAccessor.DecorateeBuilder<DECORATEE,StopAndWaitSectionDecorator.Builder<DECORATEE>>
, org.refcodes.numerical.CrcAlgorithmAccessor.CrcAlgorithmBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>
, org.refcodes.numerical.CrcChecksumValidationModeAccessor.CrcChecksumValidationModeBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>
, org.refcodes.numerical.EndianessAccessor.EndianessBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>
, AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>
, AcknowledgeRetryNumberAccessor.AcknowledgeRetryNumberBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>
, AcknowledgeSegmentPackagerAccessor.AcknowledgeSegmentPackagerBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>
, AcknowledgeTimeoutInMsAccessor.AcknowledgeTimeoutInMsBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>
, SequenceNumberInitValueAccessor.SequenceNumberInitValueBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>
, SequenceNumberWidthAccessor.SequenceNumberWidthBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>
public static final class StopAndWaitSectionDecorator.Builder<DECORATEE extends Section> extends Object implements AcknowledgeRetryNumberAccessor.AcknowledgeRetryNumberBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>, AcknowledgeTimeoutInMsAccessor.AcknowledgeTimeoutInMsBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>, org.refcodes.mixin.DecorateeAccessor.DecorateeBuilder<DECORATEE,StopAndWaitSectionDecorator.Builder<DECORATEE>>, AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>, SequenceNumberWidthAccessor.SequenceNumberWidthBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>, SequenceNumberInitValueAccessor.SequenceNumberInitValueBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>, org.refcodes.mixin.ConcatenateModeAccessor.ConcatenateModeBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>, org.refcodes.numerical.CrcChecksumValidationModeAccessor.CrcChecksumValidationModeBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>, org.refcodes.numerical.CrcAlgorithmAccessor.CrcAlgorithmBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>, org.refcodes.numerical.EndianessAccessor.EndianessBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>, AcknowledgeSegmentPackagerAccessor.AcknowledgeSegmentPackagerBuilder<StopAndWaitSectionDecorator.Builder<DECORATEE>>
StopAndWaitSegmentDecorator
.Modifier and Type | Method | Description |
---|---|---|
StopAndWaitSectionDecorator<DECORATEE> |
build() |
Returns the
StopAndWaitSegmentDecorator instance build
according to the StopAndWaitSectionDecorator.Builder configuration. |
StopAndWaitSectionDecorator.Builder<DECORATEE> |
withAcknowledgeMagicBytes(byte[] aAcknowledgeMagicBytes) |
Sets the magic bytes for the acknowledge magic bytes property.
|
StopAndWaitSectionDecorator.Builder<DECORATEE> |
withAcknowledgeRetryNumber(int aAcknowledgeRetryNumber) |
Sets the number of retries for the acknowledge retry number.
|
StopAndWaitSectionDecorator.Builder<DECORATEE> |
withAcknowledgeSegmentPackager(SegmentPackager aAcknowledgeSegmentPackager) |
Sets the
SegmentPackager ACK property. |
StopAndWaitSectionDecorator.Builder<DECORATEE> |
withAcknowledgeTimeoutInMs(long aAckTimeoutInMs) |
Sets the number for the acknowledge timeout property.
|
StopAndWaitSectionDecorator.Builder<DECORATEE> |
withConcatenateMode(org.refcodes.mixin.ConcatenateMode aConcatenateMode) |
}
|
StopAndWaitSectionDecorator.Builder<DECORATEE> |
withCrcAlgorithm(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) |
|
StopAndWaitSectionDecorator.Builder<DECORATEE> |
withCrcChecksumValidationMode(org.refcodes.numerical.ChecksumValidationMode aCrcChecksumValidationMode) |
|
StopAndWaitSectionDecorator.Builder<DECORATEE> |
withDecoratee(DECORATEE aDecoratee) |
}
|
StopAndWaitSectionDecorator.Builder<DECORATEE> |
withEndianess(org.refcodes.numerical.Endianess aEndianess) |
|
StopAndWaitSectionDecorator.Builder<DECORATEE> |
withSequenceNumberInitValue(int aSequenceNumberInitValue) |
Sets the sequence number initial value for the sequence number
initial value property.
|
StopAndWaitSectionDecorator.Builder<DECORATEE> |
withSequenceNumberWidth(int aSequenceNumberWidth) |
Sets the sequence number width (in bytes) for the sequence number
width (in bytes) property.
|
withAcknowledgeMagicBytes, withAcknowledgeMagicBytes
public StopAndWaitSectionDecorator.Builder<DECORATEE> withAcknowledgeRetryNumber(int aAcknowledgeRetryNumber)
withAcknowledgeRetryNumber
in interface AcknowledgeRetryNumberAccessor.AcknowledgeRetryNumberBuilder<DECORATEE extends Section>
aAcknowledgeRetryNumber
- The number of retries to be stored by
the number of acknowledge retry number.public StopAndWaitSectionDecorator.Builder<DECORATEE> withAcknowledgeTimeoutInMs(long aAckTimeoutInMs)
withAcknowledgeTimeoutInMs
in interface AcknowledgeTimeoutInMsAccessor.AcknowledgeTimeoutInMsBuilder<DECORATEE extends Section>
aAckTimeoutInMs
- The acknowledge timeout in
milliseconds to be stored by the acknowledge timeout property.public StopAndWaitSectionDecorator.Builder<DECORATEE> withDecoratee(DECORATEE aDecoratee)
withDecoratee
in interface org.refcodes.mixin.DecorateeAccessor.DecorateeBuilder<DECORATEE extends Section,StopAndWaitSectionDecorator.Builder<DECORATEE extends Section>>
public StopAndWaitSectionDecorator.Builder<DECORATEE> withAcknowledgeMagicBytes(byte[] aAcknowledgeMagicBytes)
withAcknowledgeMagicBytes
in interface AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder<DECORATEE extends Section>
aAcknowledgeMagicBytes
- The magic bytes to be stored by the
acknowledge magic bytes property.public StopAndWaitSectionDecorator.Builder<DECORATEE> withSequenceNumberWidth(int aSequenceNumberWidth)
withSequenceNumberWidth
in interface SequenceNumberWidthAccessor.SequenceNumberWidthBuilder<DECORATEE extends Section>
aSequenceNumberWidth
- The sequence number width (in bytes) to
be stored by the sequence number width (in bytes) property.public StopAndWaitSectionDecorator.Builder<DECORATEE> withSequenceNumberInitValue(int aSequenceNumberInitValue)
withSequenceNumberInitValue
in interface SequenceNumberInitValueAccessor.SequenceNumberInitValueBuilder<DECORATEE extends Section>
aSequenceNumberInitValue
- The sequence number initial value to
be stored by the sequence number initial value property.public StopAndWaitSectionDecorator.Builder<DECORATEE> withConcatenateMode(org.refcodes.mixin.ConcatenateMode aConcatenateMode)
public StopAndWaitSectionDecorator.Builder<DECORATEE> withCrcAlgorithm(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm)
public StopAndWaitSectionDecorator.Builder<DECORATEE> withCrcChecksumValidationMode(org.refcodes.numerical.ChecksumValidationMode aCrcChecksumValidationMode)
public StopAndWaitSectionDecorator.Builder<DECORATEE> withEndianess(org.refcodes.numerical.Endianess aEndianess)
public StopAndWaitSectionDecorator.Builder<DECORATEE> withAcknowledgeSegmentPackager(SegmentPackager aAcknowledgeSegmentPackager)
SegmentPackager
ACK property.withAcknowledgeSegmentPackager
in interface AcknowledgeSegmentPackagerAccessor.AcknowledgeSegmentPackagerBuilder<DECORATEE extends Section>
aAcknowledgeSegmentPackager
- The SegmentPackager
to be
stored by the SegmentPackager
ACK property.public StopAndWaitSectionDecorator<DECORATEE> build()
StopAndWaitSegmentDecorator
instance build
according to the StopAndWaitSectionDecorator.Builder
configuration.StopAndWaitSegmentDecorator
.Copyright © 2021. All rights reserved.