Module org.refcodes.serial
Package org.refcodes.serial
Class ReadyToReceiveSectionDecorator.Builder<DECORATEE extends Section>
- java.lang.Object
-
- org.refcodes.serial.ReadyToReceiveSectionDecorator.Builder<DECORATEE>
-
- All Implemented Interfaces:
org.refcodes.mixin.DecorateeAccessor.DecorateeBuilder<DECORATEE,ReadyToReceiveSectionDecorator.Builder<DECORATEE>>
,EnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsBuilder<ReadyToReceiveSectionDecorator.Builder<DECORATEE>>
,ReadyToReceiveMagicBytesAccessor.ReadyToReceiveMagicBytesBuilder<ReadyToReceiveSectionDecorator.Builder<DECORATEE>>
,ReadyToReceiveRetryNumberAccessor.ReadyToReceiveRetryNumberBuilder<ReadyToReceiveSectionDecorator.Builder<DECORATEE>>
,ReadyToReceiveSegmentPackagerAccessor.ReadyToReceiveSegmentPackagerBuilder<ReadyToReceiveSectionDecorator.Builder<DECORATEE>>
,ReadyToReceiveTimeoutInMsAccessor.ReadyToReceiveTimeoutInMsBuilder<ReadyToReceiveSectionDecorator.Builder<DECORATEE>>
- Enclosing class:
- ReadyToReceiveSectionDecorator<DECORATEE extends Section>
public static final class ReadyToReceiveSectionDecorator.Builder<DECORATEE extends Section> extends Object implements org.refcodes.mixin.DecorateeAccessor.DecorateeBuilder<DECORATEE,ReadyToReceiveSectionDecorator.Builder<DECORATEE>>, EnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsBuilder<ReadyToReceiveSectionDecorator.Builder<DECORATEE>>, ReadyToReceiveTimeoutInMsAccessor.ReadyToReceiveTimeoutInMsBuilder<ReadyToReceiveSectionDecorator.Builder<DECORATEE>>, ReadyToReceiveMagicBytesAccessor.ReadyToReceiveMagicBytesBuilder<ReadyToReceiveSectionDecorator.Builder<DECORATEE>>, ReadyToReceiveSegmentPackagerAccessor.ReadyToReceiveSegmentPackagerBuilder<ReadyToReceiveSectionDecorator.Builder<DECORATEE>>, ReadyToReceiveRetryNumberAccessor.ReadyToReceiveRetryNumberBuilder<ReadyToReceiveSectionDecorator.Builder<DECORATEE>>
Builder to buildReadyToReceiveSectionDecorator
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadyToReceiveSectionDecorator<DECORATEE>
build()
Builder method of the builder.ReadyToReceiveSectionDecorator.Builder<DECORATEE>
withDecoratee(DECORATEE aDecoratee)
ReadyToReceiveSectionDecorator.Builder<DECORATEE>
withEnquiryStandbyTimeInMs(long aEnquiryStandbyTimeInMs)
Sets the number for the ENQ ("enquiry") timeout property.ReadyToReceiveSectionDecorator.Builder<DECORATEE>
withReadyToReceiveMagicBytes(byte[] aReadyToReceiveMagicBytes)
Sets the magic bytes for the RTR ("ready-to-receive") magic bytes property.ReadyToReceiveSectionDecorator.Builder<DECORATEE>
withReadyToReceiveRetryNumber(int aReadyToReceiveRetryNumber)
Sets the number of retries for the RTR ("ready-to-receive") retry number.ReadyToReceiveSectionDecorator.Builder<DECORATEE>
withReadyToReceiveSegmentPackager(SegmentPackager aReadyToReceiveSegmentPackager)
Sets theSegmentPackager
RTR ("ready-to-receive") property.ReadyToReceiveSectionDecorator.Builder<DECORATEE>
withReadyToReceiveTimeoutInMs(long aReadyToReceiveTimeoutInMs)
Sets the number for the RTR ("ready-to-receive") timeout property.
-
-
-
Method Detail
-
withDecoratee
public ReadyToReceiveSectionDecorator.Builder<DECORATEE> withDecoratee(DECORATEE aDecoratee)
- Specified by:
withDecoratee
in interfaceorg.refcodes.mixin.DecorateeAccessor.DecorateeBuilder<DECORATEE extends Section,ReadyToReceiveSectionDecorator.Builder<DECORATEE extends Section>>
-
withEnquiryStandbyTimeInMs
public ReadyToReceiveSectionDecorator.Builder<DECORATEE> withEnquiryStandbyTimeInMs(long aEnquiryStandbyTimeInMs)
Sets the number for the ENQ ("enquiry") timeout property.- Specified by:
withEnquiryStandbyTimeInMs
in interfaceEnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsBuilder<DECORATEE extends Section>
- 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.
-
withReadyToReceiveTimeoutInMs
public ReadyToReceiveSectionDecorator.Builder<DECORATEE> withReadyToReceiveTimeoutInMs(long aReadyToReceiveTimeoutInMs)
Sets the number for the RTR ("ready-to-receive") timeout property.- Specified by:
withReadyToReceiveTimeoutInMs
in interfaceReadyToReceiveTimeoutInMsAccessor.ReadyToReceiveTimeoutInMsBuilder<DECORATEE extends Section>
- 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.
-
withReadyToReceiveMagicBytes
public ReadyToReceiveSectionDecorator.Builder<DECORATEE> withReadyToReceiveMagicBytes(byte[] aReadyToReceiveMagicBytes)
Sets the magic bytes for the RTR ("ready-to-receive") magic bytes property.- Specified by:
withReadyToReceiveMagicBytes
in interfaceReadyToReceiveMagicBytesAccessor.ReadyToReceiveMagicBytesBuilder<DECORATEE extends Section>
- 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.
-
withReadyToReceiveSegmentPackager
public ReadyToReceiveSectionDecorator.Builder<DECORATEE> withReadyToReceiveSegmentPackager(SegmentPackager aReadyToReceiveSegmentPackager)
Sets theSegmentPackager
RTR ("ready-to-receive") property.- Specified by:
withReadyToReceiveSegmentPackager
in interfaceReadyToReceiveSegmentPackagerAccessor.ReadyToReceiveSegmentPackagerBuilder<DECORATEE extends Section>
- Parameters:
aReadyToReceiveSegmentPackager
- TheSegmentPackager
to be stored by theSegmentPackager
RTR ("ready-to-receive") property.- Returns:
- The builder for applying multiple build operations.
-
withReadyToReceiveRetryNumber
public ReadyToReceiveSectionDecorator.Builder<DECORATEE> withReadyToReceiveRetryNumber(int aReadyToReceiveRetryNumber)
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<DECORATEE extends Section>
- 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.
-
build
public ReadyToReceiveSectionDecorator<DECORATEE> build()
Builder method of the builder.- Returns:
- built class
-
-