Module org.refcodes.serial
Package org.refcodes.serial
Class ReadyToSendSegmentDecorator.Builder<DECORATEE extends Segment>
- java.lang.Object
-
- org.refcodes.serial.ReadyToSendSegmentDecorator.Builder<DECORATEE>
-
- All Implemented Interfaces:
org.refcodes.mixin.DecorateeAccessor.DecorateeBuilder<DECORATEE,ReadyToSendSegmentDecorator.Builder<DECORATEE>>
,ClearToSendMagicBytesAccessor.ClearToSendMagicBytesBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>
,ClearToSendSegmentPackagerAccessor.ClearToSendSegmentPackagerBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>
,ClearToSendTimeoutInMsAccessor.ClearToSendTimeoutInMsBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>
,EnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>
,ReadyToSendMagicBytesAccessor.ReadyToSendMagicBytesBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>
,ReadyToSendRetryNumberAccessor.ReadyToSendRetryNumberBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>
,ReadyToSendSegmentPackagerAccessor.ReadyToSendSegmentPackagerBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>
,ReadyToSendTimeoutInMsAccessor.ReadyToSendTimeoutInMsBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>
- Enclosing class:
- ReadyToSendSegmentDecorator<DECORATEE extends Segment>
public static final class ReadyToSendSegmentDecorator.Builder<DECORATEE extends Segment> extends Object implements org.refcodes.mixin.DecorateeAccessor.DecorateeBuilder<DECORATEE,ReadyToSendSegmentDecorator.Builder<DECORATEE>>, EnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>, ReadyToSendTimeoutInMsAccessor.ReadyToSendTimeoutInMsBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>, ReadyToSendMagicBytesAccessor.ReadyToSendMagicBytesBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>, ReadyToSendSegmentPackagerAccessor.ReadyToSendSegmentPackagerBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>, ReadyToSendRetryNumberAccessor.ReadyToSendRetryNumberBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>, ClearToSendTimeoutInMsAccessor.ClearToSendTimeoutInMsBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>, ClearToSendMagicBytesAccessor.ClearToSendMagicBytesBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>, ClearToSendSegmentPackagerAccessor.ClearToSendSegmentPackagerBuilder<ReadyToSendSegmentDecorator.Builder<DECORATEE>>
Builder to buildReadyToSendSegmentDecorator
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadyToSendSegmentDecorator<DECORATEE>
build()
Builder method of the builder.ReadyToSendSegmentDecorator.Builder<DECORATEE>
withClearToSendMagicBytes(byte[] aClearToSendMagicBytes)
Sets the magic bytes for the CTS ("clear-to-send") magic bytes property.ReadyToSendSegmentDecorator.Builder<DECORATEE>
withClearToSendSegmentPackager(SegmentPackager aClearToSendSegmentPackager)
Sets theSegmentPackager
CTS ("clear-to-send") property.ReadyToSendSegmentDecorator.Builder<DECORATEE>
withClearToSendTimeoutInMs(long aClearToSendTimeoutInMs)
Sets the number for the CTS ("clear-to-send") timeout property.ReadyToSendSegmentDecorator.Builder<DECORATEE>
withDecoratee(DECORATEE aDecoratee)
ReadyToSendSegmentDecorator.Builder<DECORATEE>
withEnquiryStandbyTimeInMs(long aEnquiryStandbyTimeInMs)
Sets the number for the ENQ ("enquiry") timeout property.ReadyToSendSegmentDecorator.Builder<DECORATEE>
withReadyToSendMagicBytes(byte[] aReadyToSendMagicBytes)
Sets the magic bytes for the RTS ("ready-to-send") magic bytes property.ReadyToSendSegmentDecorator.Builder<DECORATEE>
withReadyToSendRetryNumber(int aReadyToSendRetryNumber)
Sets the number of retries for the RTS ("ready-to-send") retry number.ReadyToSendSegmentDecorator.Builder<DECORATEE>
withReadyToSendSegmentPackager(SegmentPackager aReadyToSendSegmentPackager)
Sets theSegmentPackager
RTS ("ready-to-send") property.ReadyToSendSegmentDecorator.Builder<DECORATEE>
withReadyToSendTimeoutInMs(long aReadyToSendTimeoutInMs)
Sets the number for the RTS ("ready-to-send") timeout property.
-
-
-
Method Detail
-
withDecoratee
public ReadyToSendSegmentDecorator.Builder<DECORATEE> withDecoratee(DECORATEE aDecoratee)
- Specified by:
withDecoratee
in interfaceorg.refcodes.mixin.DecorateeAccessor.DecorateeBuilder<DECORATEE extends Segment,ReadyToSendSegmentDecorator.Builder<DECORATEE extends Segment>>
-
withEnquiryStandbyTimeInMs
public ReadyToSendSegmentDecorator.Builder<DECORATEE> withEnquiryStandbyTimeInMs(long aEnquiryStandbyTimeInMs)
Sets the number for the ENQ ("enquiry") timeout property.- Specified by:
withEnquiryStandbyTimeInMs
in interfaceEnquiryStandbyTimeInMsAccessor.EnquiryStandbyTimeInMsBuilder<DECORATEE extends Segment>
- 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.
-
withReadyToSendTimeoutInMs
public ReadyToSendSegmentDecorator.Builder<DECORATEE> withReadyToSendTimeoutInMs(long aReadyToSendTimeoutInMs)
Sets the number for the RTS ("ready-to-send") timeout property.- Specified by:
withReadyToSendTimeoutInMs
in interfaceReadyToSendTimeoutInMsAccessor.ReadyToSendTimeoutInMsBuilder<DECORATEE extends Segment>
- Parameters:
aReadyToSendTimeoutInMs
- The RTS ("ready-to-send") timeout in milliseconds to be stored by the RTS timeout property.- Returns:
- The builder for applying multiple build operations.
-
withReadyToSendMagicBytes
public ReadyToSendSegmentDecorator.Builder<DECORATEE> withReadyToSendMagicBytes(byte[] aReadyToSendMagicBytes)
Sets the magic bytes for the RTS ("ready-to-send") magic bytes property.- Specified by:
withReadyToSendMagicBytes
in interfaceReadyToSendMagicBytesAccessor.ReadyToSendMagicBytesBuilder<DECORATEE extends Segment>
- Parameters:
aReadyToSendMagicBytes
- The magic bytes to be stored by the RTS ("ready-to-send") magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withReadyToSendSegmentPackager
public ReadyToSendSegmentDecorator.Builder<DECORATEE> withReadyToSendSegmentPackager(SegmentPackager aReadyToSendSegmentPackager)
Sets theSegmentPackager
RTS ("ready-to-send") property.- Specified by:
withReadyToSendSegmentPackager
in interfaceReadyToSendSegmentPackagerAccessor.ReadyToSendSegmentPackagerBuilder<DECORATEE extends Segment>
- Parameters:
aReadyToSendSegmentPackager
- TheSegmentPackager
to be stored by theSegmentPackager
RTS ("ready-to-send") property.- Returns:
- The builder for applying multiple build operations.
-
withReadyToSendRetryNumber
public ReadyToSendSegmentDecorator.Builder<DECORATEE> withReadyToSendRetryNumber(int aReadyToSendRetryNumber)
Sets the number of retries for the RTS ("ready-to-send") retry number. A RTS retry number is the overall number of retries to use when counting retries.- Specified by:
withReadyToSendRetryNumber
in interfaceReadyToSendRetryNumberAccessor.ReadyToSendRetryNumberBuilder<DECORATEE extends Segment>
- Parameters:
aReadyToSendRetryNumber
- The number of retries to be stored by the number of RTS ("ready-to-send") retry number.- Returns:
- The builder for applying multiple build operations.
-
withClearToSendTimeoutInMs
public ReadyToSendSegmentDecorator.Builder<DECORATEE> withClearToSendTimeoutInMs(long aClearToSendTimeoutInMs)
Sets the number for the CTS ("clear-to-send") timeout property.- Specified by:
withClearToSendTimeoutInMs
in interfaceClearToSendTimeoutInMsAccessor.ClearToSendTimeoutInMsBuilder<DECORATEE extends Segment>
- Parameters:
aClearToSendTimeoutInMs
- The CTS ("clear-to-send") timeout in milliseconds to be stored by the CTS timeout property.- Returns:
- The builder for applying multiple build operations.
-
withClearToSendMagicBytes
public ReadyToSendSegmentDecorator.Builder<DECORATEE> withClearToSendMagicBytes(byte[] aClearToSendMagicBytes)
Sets the magic bytes for the CTS ("clear-to-send") magic bytes property.- Specified by:
withClearToSendMagicBytes
in interfaceClearToSendMagicBytesAccessor.ClearToSendMagicBytesBuilder<DECORATEE extends Segment>
- Parameters:
aClearToSendMagicBytes
- The magic bytes to be stored by the CTS ("clear-to-send") magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withClearToSendSegmentPackager
public ReadyToSendSegmentDecorator.Builder<DECORATEE> withClearToSendSegmentPackager(SegmentPackager aClearToSendSegmentPackager)
Sets theSegmentPackager
CTS ("clear-to-send") property.- Specified by:
withClearToSendSegmentPackager
in interfaceClearToSendSegmentPackagerAccessor.ClearToSendSegmentPackagerBuilder<DECORATEE extends Segment>
- Parameters:
aClearToSendSegmentPackager
- TheSegmentPackager
to be stored by theSegmentPackager
CTS ("clear-to-send") property.- Returns:
- The builder for applying multiple build operations.
-
build
public ReadyToSendSegmentDecorator<DECORATEE> build()
Builder method of the builder.- Returns:
- built class
-
-